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 7fa3fe8326
commit 12aedd0f68
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>
@ -445,7 +446,7 @@ class CPushMod : public CModule
*/
unsigned int client_count()
{
return user->GetUserClients().size();
return GetNetwork()->GetClients().size();
}
/**