From 63b7384092472aa1395f9254592cf6ce45922bc3 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 27 Mar 2013 21:49:59 +0100 Subject: cmd_lusers Fix miscounting --- src/commands/cmd_lusers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands') diff --git a/src/commands/cmd_lusers.cpp b/src/commands/cmd_lusers.cpp index ecb289334..91a718090 100644 --- a/src/commands/cmd_lusers.cpp +++ b/src/commands/cmd_lusers.cpp @@ -27,7 +27,7 @@ struct LusersCounters unsigned int invisible; LusersCounters() - : max_local(ServerInstance->Users->LocalUserCount() - ServerInstance->Users->UnregisteredUserCount()) + : max_local(ServerInstance->Users->LocalUserCount()) , max_global(ServerInstance->Users->RegisteredUserCount()) , invisible(ServerInstance->Users->ModeCount('i')) { @@ -35,7 +35,7 @@ struct LusersCounters inline void UpdateMaxUsers() { - unsigned int current = ServerInstance->Users->LocalUserCount() - ServerInstance->Users->UnregisteredUserCount(); + unsigned int current = ServerInstance->Users->LocalUserCount(); if (current > max_local) max_local = current; @@ -72,7 +72,7 @@ class CommandLusers : public Command */ CmdResult CommandLusers::Handle (const std::vector&, User *user) { - unsigned int n_users = ServerInstance->Users->UserCount(); + unsigned int n_users = ServerInstance->Users->RegisteredUserCount(); ProtoServerList serverlist; ServerInstance->PI->GetServerList(serverlist); unsigned int n_serv = serverlist.size(); -- cgit v1.2.3