From 7187e12fb0af91f78ac2802e1b72008bbf985ccc Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 7 Feb 2006 21:23:35 +0000 Subject: Properly count remote opers in /LUSERS git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3132 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/helperfuncs.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3