summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd_rehash.cpp1
-rw-r--r--src/inspircd.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd_rehash.cpp b/src/cmd_rehash.cpp
index 7b9db22e0..f5e65d6b2 100644
--- a/src/cmd_rehash.cpp
+++ b/src/cmd_rehash.cpp
@@ -38,6 +38,7 @@ CmdResult cmd_rehash::Handle (const char** parameters, int pcnt, userrec *user)
ServerInstance->CloseLog();
ServerInstance->OpenLog(ServerInstance->Config->argv, ServerInstance->Config->argc);
ServerInstance->RehashUsersAndChans();
+ FOREACH_MOD(I_OnGarbageCollect, OnGarbageCollect());
ServerInstance->Config->Read(false,user);
}
if (old_disabled != ServerInstance->Config->DisabledCommands)
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 20dd162e5..d5146e900 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -139,6 +139,7 @@ void InspIRCd::Rehash(int status)
SI->CloseLog();
SI->OpenLog(NULL,0);
SI->RehashUsersAndChans();
+ FOREACH_MOD_I(SI, I_OnGarbageCollect, OnGarbageCollect());
SI->Config->Read(false,NULL);
FOREACH_MOD_I(SI,I_OnRehash,OnRehash(""));
}