From 3ef3047681f0813d8f1d06939eaa2ef378d99505 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 3 Nov 2015 13:08:21 +0100 Subject: Add UserManager::NextAlreadySentId() and convert all code to use it --- include/usermanager.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/usermanager.h') 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 * @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(); }; -- cgit v1.2.3