diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-17 12:17:09 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-17 12:17:09 +0000 |
commit | 1e5728d84c1b4b0d86bf745ce253aa458575df20 (patch) | |
tree | b05d280fa7dec2fe9c56cba0c8e0143984d947cd /include/usermanager.h | |
parent | bf77b312c8e15da249991cff43432c21b44807d7 (diff) |
Move a number of methods from class InspIRCd to class UserManager
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8726 e03df62e-2008-0410-955e-edbf42e46eb7
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 |