From a488fe52f613f72412505237549927e924d711b8 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 24 Jul 2021 18:54:53 +0100 Subject: Change ForEachNeighbour to return the already sent id. --- src/users.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 850909e47..55b659cc4 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -921,7 +921,7 @@ void User::WriteCommonRaw(ClientProtocol::Event& protoev, bool include_self) ForEachNeighbor(handler, include_self); } -void User::ForEachNeighbor(ForEachNeighborHandler& handler, bool include_self) +already_sent_t User::ForEachNeighbor(ForEachNeighborHandler& handler, bool include_self) { // The basic logic for visiting the neighbors of a user is to iterate the channel list of the user // and visit all users on those channels. Because two users may share more than one common channel, @@ -972,6 +972,8 @@ void User::ForEachNeighbor(ForEachNeighborHandler& handler, bool include_self) } } } + + return newid; } void User::WriteRemoteNumeric(const Numeric::Numeric& numeric) -- cgit v1.3.1-10-gc9f91