mirror of https://github.com/SeanOMik/znc-push.git
Get the number of clients on the network
using the size of GetUserClients wasn't working for me
This commit is contained in:
parent
7fa3fe8326
commit
12aedd0f68
3
push.cpp
3
push.cpp
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue