summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-11 14:40:18 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-11 14:40:18 +0200
commit3515d58c0369e7aac7fb40d0d298c98f90139e54 (patch)
treeaae696ab3293694e48bca913c739730911171055 /src/modules/m_spanningtree
parentce82bc069d42b0eb1076ddc4c3ec94db415c3eb0 (diff)
m_spanningtree Use the FJOIN builder when a channel is created
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/main.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 6a21ca4f6..8154016e7 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -516,11 +516,9 @@ void ModuleSpanningTree::OnUserJoin(Membership* memb, bool sync, bool created_by
if (created_by_local)
{
- CmdBuilder params("FJOIN");
- params.push_back(memb->chan->name);
- params.push_back(ConvToStr(memb->chan->age));
- params.push_raw(" +").push_raw(memb->chan->ChanModes(true));
- params.push(memb->modes).push_raw(',').push_raw(memb->user->uuid);
+ CommandFJoin::Builder params(memb->chan);
+ params.add(memb);
+ params.finalize();
params.Broadcast();
}
else