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
e1540e455c
commit
e80d02ab0b
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>
|
||||
|
||||
|
@ -494,7 +495,7 @@ class CPushMod : public CModule
|
|||
*/
|
||||
unsigned int client_count()
|
||||
{
|
||||
return user->GetUserClients().size();
|
||||
return GetNetwork()->GetClients().size();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue