]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/ircd.c
listener.c fixes - part 1
[irc/rqf/shadowircd.git] / src / ircd.c
index aab1d454dbd877a3e0d2c2744f01c79208d9a24e..6ad6f6125ee5f5256ff8274acc2df0ac636c5d01 100644 (file)
@@ -78,7 +78,7 @@ extern int ServerRunning;
 extern struct LocalUser meLocalUser;
 extern char **myargv;
 
-extern int maxconnections; /* XXX */
+int maxconnections; /* XXX */
 
 /*
  * print_startup - print startup information
@@ -111,7 +111,7 @@ ircd_log_cb(const char *str)
 static void
 ircd_restart_cb(const char *str)
 {
-       ilog(L_MAIN, "%s", str);
+       restart(str);
 }
 
 /*
@@ -558,7 +558,7 @@ main(int argc, char *argv[])
 
        /* Init the event subsystem */
        init_sys();
-       rb_lib_init(ircd_log_cb, restart, ircd_die_cb, !server_state_foreground, maxconnections, DNODE_HEAP_SIZE, FD_HEAP_SIZE);
+       rb_lib_init(ircd_log_cb, ircd_restart_cb, ircd_die_cb, !server_state_foreground, maxconnections, DNODE_HEAP_SIZE, FD_HEAP_SIZE);
 
        init_main_logfile();
        newconf_init();