]> jfr.im git - solanum.git/blobdiff - ircd/ircd.c
ircd: support restarting ssld processes
[solanum.git] / ircd / ircd.c
index b5995327e891fcacf2a3e5d81a4970e6aa64f1ac..668e912004cafcf9df4809f91a12d81da216d5f3 100644 (file)
@@ -68,6 +68,7 @@
 #include "privilege.h"
 #include "bandbi.h"
 #include "authd.h"
+#include "operhash.h"
 
 /* /quote set variables */
 struct SetOptions GlobalSetOptions;
@@ -376,7 +377,7 @@ write_pidfile(const char *filename)
        {
                unsigned int pid = (unsigned int) getpid();
 
-               rb_snprintf(buff, sizeof(buff), "%u\n", pid);
+               snprintf(buff, sizeof(buff), "%u\n", pid);
                if((fputs(buff, fb) == -1))
                {
                        ilog(L_MAIN, "Error writing %u to pid file %s (%s)",
@@ -571,6 +572,9 @@ charybdis_main(int argc, char *argv[])
         */
        setup_corefile();
 
+       /* initialise operhash fairly early. */
+       init_operhash();
+
        memset(&me, 0, sizeof(me));
        memset(&meLocalUser, 0, sizeof(meLocalUser));
        me.localClient = &meLocalUser;
@@ -649,7 +653,7 @@ charybdis_main(int argc, char *argv[])
        init_hook();
        init_channels();
        initclass();
-       initwhowas();
+       whowas_init();
        init_reject();
        init_cache();
        init_monitor();