summaryrefslogtreecommitdiff
path: root/src/users.cpp
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 /src/users.cpp
parent2c51a2bf17b6c377f0207f3d89b4b3f399fc0178 (diff)
Add UserManager::NextAlreadySentId() and convert all code to use it
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index d503844e7..258544312 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -873,7 +873,7 @@ void User::ForEachNeighbor(ForEachNeighborHandler& handler, bool include_self)
FOREACH_MOD(OnBuildNeighborList, (this, include_chans, exceptions));
// Get next id, guaranteed to differ from the already_sent field of all users
- const already_sent_t newid = ++LocalUser::already_sent_id;
+ const already_sent_t newid = ServerInstance->Users.NextAlreadySentId();
// Handle exceptions first
for (std::map<User*, bool>::const_iterator i = exceptions.begin(); i != exceptions.end(); ++i)