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/protocolinterface.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/modules/m_spanningtree/protocolinterface.cpp') diff --git a/src/modules/m_spanningtree/protocolinterface.cpp b/src/modules/m_spanningtree/protocolinterface.cpp index afd463360..013dfac1b 100644 --- a/src/modules/m_spanningtree/protocolinterface.cpp +++ b/src/modules/m_spanningtree/protocolinterface.cpp @@ -70,15 +70,7 @@ void SpanningTreeProtocolInterface::SendMetaData(Extensible* target, const std:: void SpanningTreeProtocolInterface::SendTopic(Channel* channel, std::string &topic) { - CmdBuilder params("FTOPIC"); - - params.push_back(channel->name); - params.push_back(ConvToStr(channel->age)); - params.push_back(ConvToStr(ServerInstance->Time())); - params.push_back(ServerInstance->Config->ServerName); - params.push_last(topic); - - params.Broadcast(); + CommandFTopic::Builder(ServerInstance->FakeClient, channel).Broadcast(); } void SpanningTreeProtocolInterface::SendMode(User* source, User* u, Channel* c, const std::vector& modedata, const std::vector& translate) -- cgit v1.3.1-10-gc9f91