From ebb3258ff477724e73abe861c3ff66f63da19e42 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 14 Feb 2019 14:40:12 +0000 Subject: WriteNeighborsWithCap: add the ability to send to the origin user. --- include/modules/ircv3.h | 4 ++-- 1 file 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); } }; -- cgit v1.2.3