From 5e9a6b9186a8cbaaf65ae7d9cd9c0c033c91b497 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 29 Dec 2006 23:34:47 +0000 Subject: Add counter system for umodes to get rid of some O(n) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6163 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/umode_o.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modes/umode_o.cpp') diff --git a/src/modes/umode_o.cpp b/src/modes/umode_o.cpp index b121df908..6d785f26e 100644 --- a/src/modes/umode_o.cpp +++ b/src/modes/umode_o.cpp @@ -42,3 +42,8 @@ ModeAction ModeUserOperator::OnModeChange(userrec* source, userrec* dest, chanre return MODEACTION_ALLOW; } + +unsigned int GetCount() +{ + return ServerInstance->all_opers.size(); +} -- cgit v1.2.3