Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cmd_lusers Fix miscounting

  • Loading branch information...
commit 63b7384092472aa1395f9254592cf6ce45922bc3 1 parent 8d419c3
@attilamolnar attilamolnar authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/commands/cmd_lusers.cpp
View
6 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();
Please sign in to comment.
Something went wrong with that request. Please try again.