summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-03-27 21:49:59 +0100
committerattilamolnar <attilamolnar@hush.com>2013-03-27 21:49:59 +0100
commit63b7384092472aa1395f9254592cf6ce45922bc3 (patch)
tree4719a1570357643e7aa5eab54f1b62341d9825c1
parent8d419c3873cd3593baf4cc5f66bbe854a3a4614f (diff)
cmd_lusers Fix miscounting
-rw-r--r--src/commands/cmd_lusers.cpp6
1 files changed, 3 insertions, 3 deletions
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<std::string>&, 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();