summaryrefslogtreecommitdiff
path: root/include/usermanager.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-11-03 13:08:21 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-11-03 13:08:21 +0100
commit3ef3047681f0813d8f1d06939eaa2ef378d99505 (patch)
treef3c8540a1fc47b574c74e8997f8728ac20422178 /include/usermanager.h
parent2c51a2bf17b6c377f0207f3d89b4b3f399fc0178 (diff)
Add UserManager::NextAlreadySentId() and convert all code to use it
Diffstat (limited to 'include/usermanager.h')
-rw-r--r--include/usermanager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/usermanager.h b/include/usermanager.h
index eee076802..605b841bb 100644
--- a/include/usermanager.h
+++ b/include/usermanager.h
@@ -186,4 +186,9 @@ class CoreExport UserManager : public fakederef<UserManager>
* @param ... The format arguments
*/
void ServerNoticeAll(const char* text, ...) CUSTOM_PRINTF(2, 3);
+
+ /** Retrieves the next already sent id, guaranteed to be not equal to any user's already_sent field
+ * @return Next already_sent id
+ */
+ already_sent_t NextAlreadySentId();
};