diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-08-19 20:36:41 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-08-28 12:11:33 +0200 |
commit | 7432fea968127b606fc029ae462e91d3f30df8a4 (patch) | |
tree | 396250c0766372c87e83a73d00e2018ed61cc69a /src/modules/m_spanningtree/netburst.cpp | |
parent | 7e7e773d4d43e68c18c19e2ec712f4250e5f756d (diff) |
m_spanningtree Propagate topic changes via FTOPIC in order to prevent desync when two TOPIC messages cross
TOPIC is no longer accepted from servers using the new protocol
Diffstat (limited to 'src/modules/m_spanningtree/netburst.cpp')
-rw-r--r-- | src/modules/m_spanningtree/netburst.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp index 2cd107972..d4669442a 100644 --- a/src/modules/m_spanningtree/netburst.cpp +++ b/src/modules/m_spanningtree/netburst.cpp @@ -147,11 +147,7 @@ void TreeSocket::SyncChannel(Channel* chan) // If the topic was ever set, send it, even if it's empty now // because a new empty topic should override an old non-empty topic if (chan->topicset != 0) - { - this->WriteLine(InspIRCd::Format(":%s FTOPIC %s %lu %lu %s :%s", ServerInstance->Config->GetSID().c_str(), - chan->name.c_str(), (unsigned long)chan->age, (unsigned long)chan->topicset, - chan->setby.c_str(), chan->topic.c_str())); - } + this->WriteLine(CommandFTopic::Builder(chan)); for (Extensible::ExtensibleStore::const_iterator i = chan->GetExtList().begin(); i != chan->GetExtList().end(); i++) { |