From 7432fea968127b606fc029ae462e91d3f30df8a4 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Mon, 19 Aug 2013 20:36:41 +0200 Subject: 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 --- src/modules/m_spanningtree/netburst.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/modules/m_spanningtree/netburst.cpp') 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++) { -- cgit v1.3.1-10-gc9f91