aboutsummaryrefslogtreecommitdiffstats
path: root/include/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-08-01 19:42:57 +0100
committerGravatar Sadie Powell2021-08-01 20:14:47 +0100
commita7301475860b513d96bb136b18843591cedef4dc (patch)
tree32298f02f98577d9ae7a9d3d958832b139f4eb56 /include/modules
parentMerge branch 'insp3' into master. (diff)
parentRemove the root checks from the helper script. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'include/modules')
-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 e00821a70..d4d2b4db1 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;
+ uint64_t sentid;
void Execute(LocalUser* user) 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);
}
+
+ uint64_t GetAlreadySentId() const { return sentid; }
};
/** Base class for simple message tags.