inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit ebb3258ff477724e73abe861c3ff66f63da19e42
parent 72841a637661a5ffef96e7c8e70509805c40977d
Author: Peter Powell <petpow@saberuk.com>
Date:   Thu, 14 Feb 2019 14:40:12 +0000

WriteNeighborsWithCap: add the ability to send to the origin user.

Diffstat:
Minclude/modules/ircv3.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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); } };