summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)