aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Attila Molnar2015-11-03 13:08:21 +0100
committerGravatar Attila Molnar2015-11-03 13:08:21 +0100
commit3ef3047681f0813d8f1d06939eaa2ef378d99505 (patch)
treef3c8540a1fc47b574c74e8997f8728ac20422178 /include
parentMerge branch 'master+invite' (diff)
Add UserManager::NextAlreadySentId() and convert all code to use it
Diffstat (limited to 'include')
-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();
};