summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/main.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-08-19 20:36:41 +0200
committerattilamolnar <attilamolnar@hush.com>2013-08-28 12:11:33 +0200
commit7432fea968127b606fc029ae462e91d3f30df8a4 (patch)
tree396250c0766372c87e83a73d00e2018ed61cc69a /src/modules/m_spanningtree/main.cpp
parent7e7e773d4d43e68c18c19e2ec712f4250e5f756d (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/main.cpp')
-rw-r--r--src/modules/m_spanningtree/main.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index f458c2d2f..98f9a304b 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -422,10 +422,7 @@ void ModuleSpanningTree::OnPostTopicChange(User* user, Channel* chan, const std:
if (!IS_LOCAL(user))
return;
- CmdBuilder params(user->uuid, "TOPIC");
- params.push_back(chan->name);
- params.push_last(topic);
- params.Broadcast();
+ CommandFTopic::Builder(user, chan).Broadcast();
}
void ModuleSpanningTree::OnUserMessage(User* user, void* dest, int target_type, const std::string& text, char status, const CUList& exempt_list, MessageType msgtype)