diff options
| author | 2013-08-19 20:36:41 +0200 | |
|---|---|---|
| committer | 2013-08-28 12:11:33 +0200 | |
| commit | 7432fea968127b606fc029ae462e91d3f30df8a4 (patch) | |
| tree | 396250c0766372c87e83a73d00e2018ed61cc69a /src/modules/m_spanningtree/protocolinterface.cpp | |
| parent | m_spanningtree Introduce command builders (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/protocolinterface.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/protocolinterface.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
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<std::string>& modedata, const std::vector<TranslateType>& translate) |
