Get the number of clients on the network

using the size of GetUserClients wasn't working for me
This commit is contained in:
Daniel Wallace 2012-08-31 01:09:56 -04:00 committed by John Reese
parent e1540e455c
commit e80d02ab0b
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@
#include <znc/IRCNetwork.h>
#include <znc/Modules.h>
#include <znc/FileUtils.h>
#include <znc/Client.h>
#include "time.h"
#include <string.h>
@ -494,7 +495,7 @@ class CPushMod : public CModule
*/
unsigned int client_count()
{
return user->GetUserClients().size();
return GetNetwork()->GetClients().size();
}
/**