diff options
| author | 2019-02-14 14:40:12 +0000 | |
|---|---|---|
| committer | 2019-02-14 14:40:12 +0000 | |
| commit | ebb3258ff477724e73abe861c3ff66f63da19e42 (patch) | |
| tree | ef06e25e81fa728ccea75a80017a27063daf57a7 /include | |
| parent | Re-tabularise the helpop cuser/coper command lists. (diff) | |
| download | inspircd++-ebb3258ff477724e73abe861c3ff66f63da19e42.tar.gz inspircd++-ebb3258ff477724e73abe861c3ff66f63da19e42.tar.bz2 inspircd++-ebb3258ff477724e73abe861c3ff66f63da19e42.zip | |
WriteNeighborsWithCap: add the ability to send to the origin user.
Diffstat (limited to 'include')
| -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); } }; |
