summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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