summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/netburst.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-03 12:42:36 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-03 12:42:36 +0200
commit1d020d132ff6d05ffd865d025cf161d7637f10d8 (patch)
treeeda507269797254f6fe82d9bb973c4e787e325d4 /src/modules/m_spanningtree/netburst.cpp
parent2eb0505a16cf5b70076bab2de494ef92b7e991d9 (diff)
m_spanningtree Replace manual string building of outgoing commands with CmdBuilder where possible
Diffstat (limited to 'src/modules/m_spanningtree/netburst.cpp')
-rw-r--r--src/modules/m_spanningtree/netburst.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp
index ed2bd0756..f96e47d60 100644
--- a/src/modules/m_spanningtree/netburst.cpp
+++ b/src/modules/m_spanningtree/netburst.cpp
@@ -107,7 +107,7 @@ void TreeSocket::DoBurst(TreeServer* s)
capab->auth_fingerprint ? "SSL Fingerprint and " : "",
capab->auth_challenge ? "challenge-response" : "plaintext password");
this->CleanNegotiationInfo();
- this->WriteLine(":" + ServerInstance->Config->GetSID() + " BURST " + ConvToStr(ServerInstance->Time()));
+ this->WriteLine(CmdBuilder("BURST").push_int(ServerInstance->Time()));
/* Send server tree */
this->SendServers(Utils->TreeRoot, s);
@@ -121,7 +121,7 @@ void TreeSocket::DoBurst(TreeServer* s)
this->SendXLines();
FOREACH_MOD(OnSyncNetwork, (bs.server));
- this->WriteLine(":" + ServerInstance->Config->GetSID() + " ENDBURST");
+ this->WriteLine(CmdBuilder("ENDBURST"));
ServerInstance->SNO->WriteToSnoMask('l',"Finished bursting to \2"+ s->GetName()+"\2.");
}