aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-07-24 19:02:55 +0100
committerGravatar Sadie Powell2021-07-24 19:07:25 +0100
commitc935e5e89c932e396b6779caa54048d45e180577 (patch)
treea4269df11a789c25f14bce7c67720f22b536893c /include
parentChange ForEachNeighbour to return the already sent id. (diff)
Allow retrieving the already sent id from WriteNeighborsWithCap.
Diffstat (limited to 'include')
-rw-r--r--include/modules/ircv3.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/modules/ircv3.h b/include/modules/ircv3.h
index 71bff2172..6b86adb00 100644
--- a/include/modules/ircv3.h
+++ b/include/modules/ircv3.h
@@ -31,8 +31,10 @@ namespace IRCv3
class IRCv3::WriteNeighborsWithCap : public User::ForEachNeighborHandler
{
+ private:
const Cap::Capability& cap;
ClientProtocol::Event& protoev;
+ already_sent_t sentid;
void Execute(LocalUser* user) CXX11_OVERRIDE
{
@@ -45,8 +47,10 @@ class IRCv3::WriteNeighborsWithCap : public User::ForEachNeighborHandler
: cap(capability)
, protoev(ev)
{
- user->ForEachNeighbor(*this, include_self);
+ sentid = user->ForEachNeighbor(*this, include_self);
}
+
+ already_sent_t GetAlreadySentId() const { return sentid; }
};
/** Base class for simple message tags.