aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-07-24 18:54:53 +0100
committerGravatar Sadie Powell2021-07-24 19:00:39 +0100
commita488fe52f613f72412505237549927e924d711b8 (patch)
tree3948bae34185e3875da51abf0c952a0b5caf29c3 /src/users.cpp
parentAlso increase maxquit from 255 to 300. (diff)
Change ForEachNeighbour to return the already sent id.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 3 insertions, 1 deletions
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)