Author: Michael Poole <mdpoole@troilus.org>
[ircu2.10.12-pk.git] / ircd / ircd.c
index 006263b8f55eab5547162a1d2c47ebc553be07d8..2a521703be67091563096cad4b0340801e93da48 100644 (file)
@@ -508,6 +508,9 @@ static void parse_command_line(int argc, char** argv) {
        debuglevel = 0;
       debugmode = optarg;
       thisServer.bootopt |= BOOT_DEBUG;
+#ifndef DEBUGMODE
+      printf("WARNING: DEBUGMODE disabled; -x has no effect.\n");
+#endif
       break;
 
     default:
@@ -749,6 +752,9 @@ int main(int argc, char **argv) {
   cli_lasttime(&me) = cli_since(&me) = cli_firsttime(&me) = CurrentTime;
 
   hAddClient(&me);
+#ifdef IPV6
+  SetIPv6(&me);
+#endif
 
   write_pidfile();
   init_counters();