diff options
Diffstat (limited to 'include/usermanager.h')
-rw-r--r-- | include/usermanager.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/include/usermanager.h b/include/usermanager.h index ac8ae1cb3..f5df25f00 100644 --- a/include/usermanager.h +++ b/include/usermanager.h @@ -17,8 +17,7 @@ */ -#ifndef USERMANAGER_H -#define USERMANAGER_H +#pragma once #include <list> @@ -76,6 +75,12 @@ class CoreExport UserManager */ clonemap global_clones; + /** + * Reset the already_sent IDs so we don't wrap it around and drop a message + * Also removes all expired invites + */ + void GarbageCollect(); + /** Add a client to the system. * This will create a new User, insert it into the user_hash, * initialize it as not yet registered, and add it to the socket engine. @@ -149,9 +154,6 @@ class CoreExport UserManager */ unsigned int LocalUserCount(); - - - /** Number of users with a certain mode set on them */ int ModeCount(const char mode); @@ -161,12 +163,4 @@ class CoreExport UserManager * @param ... The format arguments */ void ServerNoticeAll(const char* text, ...) CUSTOM_PRINTF(2, 3); - - /** Send a server message (PRIVMSG) to all local users - * @param text The text format string to send - * @param ... The format arguments - */ - void ServerPrivmsgAll(const char* text, ...) CUSTOM_PRINTF(2, 3); }; - -#endif |