]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Fix --with-max-clients not taking a parameter (reported by erich)
[user/henk/code/inspircd.git] / src / inspircd.cpp
index ae54987f9dedfd86c17ad4b5123dd7abae834405..d5146e900edd7e1af648820a57dfa4298fa9731b 100644 (file)
@@ -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(""));
 }
@@ -815,6 +816,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets)
                {
                        irc::whowas::MaintainWhoWas(this, TIME);
                        this->RehashUsersAndChans();
+                       FOREACH_MOD_I(this, I_OnGarbageCollect, OnGarbageCollect());
                }
                Timers->TickTimers(TIME);
                this->DoBackgroundUserStuff(TIME);