]> jfr.im git - solanum.git/blobdiff - modules/m_rehash.c
opm: properly re-establish listeners on re-enable
[solanum.git] / modules / m_rehash.c
index 4fc411614e312c975c4edd045842b34cb5d8d7a7..3151abfa810dd472fddbe855532661a98d14a821 100644 (file)
@@ -25,7 +25,6 @@
 #include "stdinc.h"
 #include "client.h"
 #include "channel.h"
-#include "common.h"
 #include "match.h"
 #include "ircd.h"
 #include "s_serv.h"
@@ -118,7 +117,7 @@ rehash_omotd(struct Client *source_p)
                remote_rehash_oper_p = source_p;
 
        free_cachefile(oper_motd);
-       oper_motd = cache_file(OPATH, "opers.motd", 0);
+       oper_motd = cache_file(ircd_paths[IRCD_PATH_IRCD_OMOTD], "opers.motd", 0);
 }
 
 static void