]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
WriteNeighborsWithCap: add the ability to send to the origin user.
authorPeter Powell <petpow@saberuk.com>
Thu, 14 Feb 2019 14:40:12 +0000 (14:40 +0000)
committerPeter Powell <petpow@saberuk.com>
Thu, 14 Feb 2019 14:40:12 +0000 (14:40 +0000)
include/modules/ircv3.h

index 338abdeba25b6e1552a1c33d693e59088349de0a..9729e8ed507716a6453c6cf93535737771d23d3f 100644 (file)
@@ -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);
        }
 };