aboutsummaryrefslogtreecommitdiffstats
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-02-07 21:23:35 +0000
committerGravatar brain2006-02-07 21:23:35 +0000
commit7187e12fb0af91f78ac2802e1b72008bbf985ccc (patch)
treec3c7f5e4e8a8e6d7898b61c965711220d33daffe /src/helperfuncs.cpp
parent005 update, removed duplicate WALLCHOPS reported by ThaPrince, added VBANLIST (diff)
downloadinspircd++-7187e12fb0af91f78ac2802e1b72008bbf985ccc.tar.gz
inspircd++-7187e12fb0af91f78ac2802e1b72008bbf985ccc.tar.bz2
inspircd++-7187e12fb0af91f78ac2802e1b72008bbf985ccc.zip
Properly count remote opers in /LUSERS
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3132 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 454604303..e3e3db023 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -1286,7 +1286,10 @@ int usercount_invisible(void)
int usercount_opers(void)
{
- return all_opers.size();
+ int c = 0;
+ for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
+ if (*i->second->oper) c++;
+ return c;
}
int usercount_unknown(void)