diff options
-rw-r--r-- | src/helperfuncs.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index e9ae9168e..d96c068ed 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -312,13 +312,7 @@ int InspIRCd::UserCount() int InspIRCd::RegisteredUserCount() { int c = 0; - - for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) - { - c += (i->second->registered == REG_ALL); - } - - return c; + return this->UnregisteredUserCount() - clientlist.size(); } int InspIRCd::InvisibleUserCount() |