summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-07 21:23:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-07 21:23:35 +0000
commit7187e12fb0af91f78ac2802e1b72008bbf985ccc (patch)
treec3c7f5e4e8a8e6d7898b61c965711220d33daffe
parenta8d21368079fc90756a8ddd8ec94cbb0b3fa1c4d (diff)
Properly count remote opers in /LUSERS
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3132 e03df62e-2008-0410-955e-edbf42e46eb7
-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)