diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-07 21:23:35 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-07 21:23:35 +0000 |
commit | 7187e12fb0af91f78ac2802e1b72008bbf985ccc (patch) | |
tree | c3c7f5e4e8a8e6d7898b61c965711220d33daffe /src | |
parent | a8d21368079fc90756a8ddd8ec94cbb0b3fa1c4d (diff) |
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')
-rw-r--r-- | src/helperfuncs.cpp | 5 |
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) |