summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h
index 9b6bd0bd8..c7fd780bd 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -318,6 +318,10 @@ class Server : public classbase
* Nicks for unregistered connections will return false.
*/
virtual bool IsNick(std::string nick);
+ /** Returns a count of the number of users on a channel.
+ * This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel.
+ */
+ virtual int CountUsers(chanrec* c);
/** Attempts to look up a nick and return a pointer to it.
* This function will return NULL if the nick does not exist.
*/