diff options
Diffstat (limited to 'include/usermanager.h')
-rw-r--r-- | include/usermanager.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/include/usermanager.h b/include/usermanager.h index 9cc3e0309..f994e9739 100644 --- a/include/usermanager.h +++ b/include/usermanager.h @@ -77,10 +77,30 @@ class CoreExport UserManager : public classbase */ unsigned long LocalCloneCount(User *user); + /** Return a count of users, unknown and known connections + * @return The number of users + */ + unsigned int UserCount(); + + /** Return a count of fully registered connections only + * @return The number of registered users + */ + unsigned int RegisteredUserCount(); + /** Return a count of opered (umode +o) users only + * @return The number of opers + */ + unsigned int OperCount(); + /** Return a count of unregistered (before NICK/USER) users only + * @return The number of unregistered (unknown) connections + */ + unsigned int UnregisteredUserCount(); - void RemoveCloneCounts(); + /** Return a count of local users on this server only + * @return The number of local users + */ + unsigned int LocalUserCount(); }; #endif |