diff options
| author | 2021-08-01 19:42:57 +0100 | |
|---|---|---|
| committer | 2021-08-01 20:14:47 +0100 | |
| commit | a7301475860b513d96bb136b18843591cedef4dc (patch) | |
| tree | 32298f02f98577d9ae7a9d3d958832b139f4eb56 /include/modules | |
| parent | Merge branch 'insp3' into master. (diff) | |
| parent | Remove the root checks from the helper script. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'include/modules')
| -rw-r--r-- | include/modules/ircv3.h | 6 |
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. |
