]> jfr.im git - solanum.git/blobdiff - ircd/s_conf.c
Add hook for when rehash is called.
[solanum.git] / ircd / s_conf.c
index 19ea9fd073cd3e16dc86a2d4581244398c293e2a..36f336a4bf9d8daa0eb0d0d4e178b1bbab4fc532 100644 (file)
@@ -633,13 +633,14 @@ attach_conf(struct Client *client_p, struct ConfItem *aconf)
 bool
 rehash(bool sig)
 {
+       hook_data_rehash hdata = { sig };
+
        if(sig)
-       {
                sendto_realops_snomask(SNO_GENERAL, L_ALL,
                                     "Got signal SIGHUP, reloading ircd conf. file");
-       }
 
        rehash_authd();
+
        /* don't close listeners until we know we can go ahead with the rehash */
        read_conf_files(false);
 
@@ -649,6 +650,8 @@ rehash(bool sig)
                rb_strlcpy(me.info, "unknown", sizeof(me.info));
 
        open_logfiles();
+
+       call_hook(h_rehash, &hdata);
        return false;
 }