From 9cf381330eab69d7e5bf26684d1ec8075aee60a2 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 22 Jul 2019 12:40:22 +0100 Subject: Fix some regressions in sending tags between servers. --- src/modules/m_spanningtree/commandbuilder.h | 2 +- src/modules/m_spanningtree/misccommands.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/modules/m_spanningtree/commandbuilder.h b/src/modules/m_spanningtree/commandbuilder.h index 6159d7b8a..f6cca9917 100644 --- a/src/modules/m_spanningtree/commandbuilder.h +++ b/src/modules/m_spanningtree/commandbuilder.h @@ -69,7 +69,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); diff --git a/src/modules/m_spanningtree/misccommands.cpp b/src/modules/m_spanningtree/misccommands.cpp index 1d4104f28..55c36a3ba 100644 --- a/src/modules/m_spanningtree/misccommands.cpp +++ b/src/modules/m_spanningtree/misccommands.cpp @@ -59,10 +59,9 @@ void CmdBuilder::UpdateTags() } } taglist.push_back(' '); - content.insert(0, taglist); } content.replace(0, tagsize, taglist); - tagsize = content.length(); + tagsize = taglist.length(); } CmdResult CommandSNONotice::Handle(User* user, Params& params) -- cgit v1.2.3