From be70931a50f23c68e055602facce5736775f3fab Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 9 Jan 2007 00:25:18 +0000 Subject: 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 --- src/modules.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 8d5ca846f..211ce9853 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -348,6 +348,7 @@ void InspIRCd::RehashServer() this->WriteOpers("*** Rehashing config file"); this->RehashUsersAndChans(); this->Config->Read(false,NULL); + this->ResetMaxBans(); this->Res->Rehash(); } -- cgit v1.3.1-10-gc9f91