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 --- include/inspircd.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/inspircd.h') diff --git a/include/inspircd.h b/include/inspircd.h index 0e53ce1c4..1931c3987 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -1169,6 +1169,11 @@ class InspIRCd : public classbase */ void RehashUsersAndChans(); + /** Resets the cached max bans value on all channels. + * Called by rehash. + */ + void ResetMaxBans(); + /** Begin execution of the server. * NOTE: this function NEVER returns. Internally, * after performing some initialisation routines, -- cgit v1.2.3