]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/commandbuilder.h
Allow enabling the message-tags cap without client-only tags.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / commandbuilder.h
index 6159d7b8ad18ab609aef86eda7e756d3fc476aeb..527b535847109d9267799128f3fc592e638f903f 100644 (file)
@@ -1,7 +1,9 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2013 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2019 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2013-2015 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2013 Adam <Adam@anope.org>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
@@ -58,7 +60,7 @@ class CmdBuilder
                : content(1, ':')
                , tagsize(0)
        {
-               content.append(src->GetID());
+               content.append(src->GetId());
                push(cmd);
                FireEvent(src, cmd, tags);
        }
@@ -69,7 +71,7 @@ class CmdBuilder
        {
                content.append(src->uuid);
                push(cmd);
-               if (src == ServerInstance->FakeClient)
+               if (InspIRCd::IsSID(src->uuid))
                        FireEvent(src->server, cmd, tags);
                else
                        FireEvent(src, cmd, tags);