diff options
author | Peter Powell <petpow@saberuk.com> | 2019-07-22 12:40:22 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-07-22 12:40:37 +0100 |
commit | 9cf381330eab69d7e5bf26684d1ec8075aee60a2 (patch) | |
tree | 3e4bd5be3bdeecf32708a96b66e5de0d5fcd91fc /src | |
parent | 5f387071d339892ebed5accba92f91f997396476 (diff) |
Fix some regressions in sending tags between servers.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/commandbuilder.h | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/misccommands.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
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) |