diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-09 00:25:18 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-09 00:25:18 +0000 |
commit | be70931a50f23c68e055602facce5736775f3fab (patch) | |
tree | 5ab53e604456abb30bcb06185bd09414117d4943 /src/cmd_rehash.cpp | |
parent | 7a9d31a46328de9c12e09c6f5620d39251efdf34 (diff) |
Cache channel max bans value to save an O(n) loop of match() on every ban (etc) add
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6267 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_rehash.cpp')
-rw-r--r-- | src/cmd_rehash.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd_rehash.cpp b/src/cmd_rehash.cpp index 8154c5b92..d942255f3 100644 --- a/src/cmd_rehash.cpp +++ b/src/cmd_rehash.cpp @@ -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); |