]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd_io.cpp
Fixed SIGHUP rehash to actually send rehash event to modules
[user/henk/code/inspircd.git] / src / inspircd_io.cpp
index afed864f77469c88bb1805e88b40de8adb526cb0..e6dfc71b1dccb32cf7335b0661c9cd1a783717d8 100644 (file)
@@ -412,10 +412,11 @@ void Killed(int status)
 
 void Rehash(int status)
 {
-       WriteOpers("Rehashing config file %s due to SIGHUP",CONFIG_FILE);
+       WriteOpers("Rehashing config file %s due to SIGHUP",CleanFilename(CONFIG_FILE));
        fclose(Config->log_file);
        OpenLog(NULL,0);
        Config->Read(false,NULL);
+       FOREACH_MOD(I_OnRehash,OnRehash(""));
 }