]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_rehash.cpp
Cache channel max bans value to save an O(n) loop of match() on every ban (etc) add
[user/henk/code/inspircd.git] / src / cmd_rehash.cpp
index 8154c5b923d02f97cb42a9f9f1956316a13e69da..d942255f350b6918fad7820abdd5955d932e9197 100644 (file)
@@ -41,6 +41,7 @@ CmdResult cmd_rehash::Handle (const char** parameters, int pcnt, userrec *user)
                FOREACH_MOD(I_OnGarbageCollect, OnGarbageCollect());
                ServerInstance->Config->Read(false,user);
                ServerInstance->Res->Rehash();
+               ServerInstance->ResetMaxBans();
        }
        if (old_disabled != ServerInstance->Config->DisabledCommands)
                InitializeDisabledCommands(ServerInstance->Config->DisabledCommands, ServerInstance);