diff options
author | Peter Powell <petpow@saberuk.com> | 2019-02-14 14:40:12 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-02-14 14:40:12 +0000 |
commit | ebb3258ff477724e73abe861c3ff66f63da19e42 (patch) | |
tree | ef06e25e81fa728ccea75a80017a27063daf57a7 /include/modules | |
parent | 72841a637661a5ffef96e7c8e70509805c40977d (diff) |
WriteNeighborsWithCap: add the ability to send to the origin user.
Diffstat (limited to 'include/modules')
-rw-r--r-- | include/modules/ircv3.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/modules/ircv3.h b/include/modules/ircv3.h index 338abdeba..9729e8ed5 100644 --- a/include/modules/ircv3.h +++ b/include/modules/ircv3.h @@ -40,11 +40,11 @@ class IRCv3::WriteNeighborsWithCap : public User::ForEachNeighborHandler } public: - WriteNeighborsWithCap(User* user, ClientProtocol::Event& ev, const Cap::Capability& capability) + WriteNeighborsWithCap(User* user, ClientProtocol::Event& ev, const Cap::Capability& capability, bool include_self = false) : cap(capability) , protoev(ev) { - user->ForEachNeighbor(*this, false); + user->ForEachNeighbor(*this, include_self); } }; |