aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree/server.cpp')
-rw-r--r--src/modules/m_spanningtree/server.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/server.cpp b/src/modules/m_spanningtree/server.cpp
index 7ca57f114..d68b39b17 100644
--- a/src/modules/m_spanningtree/server.cpp
+++ b/src/modules/m_spanningtree/server.cpp
@@ -222,7 +222,12 @@ bool TreeSocket::Inbound_Server(CommandBase::Params& params)
// Send our details: Our server name and description and hopcount of 0,
// along with the sendpass from this block.
- this->WriteLine("SERVER " + ServerInstance->Config->ServerName + " " + TreeSocket::MakePass(x->SendPass, this->GetTheirChallenge()) + " 0 " + ServerInstance->Config->GetSID() + " :" + ServerInstance->Config->ServerDesc);
+ this->WriteLine(INSP_FORMAT("SERVER {} {} 0 {} :{}",
+ ServerInstance->Config->ServerName,
+ TreeSocket::MakePass(x->SendPass, this->GetTheirChallenge()),
+ ServerInstance->Config->ServerId,
+ ServerInstance->Config->ServerDesc
+ ));
// move to the next state, we are now waiting for THEM.
this->LinkState = WAIT_AUTH_2;