diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-07-04 20:33:24 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-10-02 23:44:22 +0200 |
commit | 7656b6656582e5064f8ab1c6cf4a246a017999d1 (patch) | |
tree | e336596c1c192dece2c683aaf0fcde6bde1acbc7 /src | |
parent | 6b929c6dbb3d36c3873ab9911ad4d8a46ddbdc99 (diff) |
m_spanningtree Netburst: Remove unnecessary variables from DoBurst()
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/netburst.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp index 8cd0dccd9..2c9c687b8 100644 --- a/src/modules/m_spanningtree/netburst.cpp +++ b/src/modules/m_spanningtree/netburst.cpp @@ -34,17 +34,14 @@ */ void TreeSocket::DoBurst(TreeServer* s) { - std::string name = s->GetName(); - std::string burst = ":" + ServerInstance->Config->GetSID() + " BURST " +ConvToStr(ServerInstance->Time()); - std::string endburst = ":" + ServerInstance->Config->GetSID() + " ENDBURST"; ServerInstance->SNO->WriteToSnoMask('l',"Bursting to \2%s\2 (Authentication: %s%s).", - name.c_str(), + s->GetName().c_str(), capab->auth_fingerprint ? "SSL Fingerprint and " : "", capab->auth_challenge ? "challenge-response" : "plaintext password"); this->CleanNegotiationInfo(); - this->WriteLine(burst); + this->WriteLine(":" + ServerInstance->Config->GetSID() + " BURST " + ConvToStr(ServerInstance->Time())); /* send our version string */ - this->WriteLine(std::string(":")+ServerInstance->Config->GetSID()+" VERSION :"+ServerInstance->GetVersionString()); + this->WriteLine(":" + ServerInstance->Config->GetSID() + " VERSION :"+ServerInstance->GetVersionString()); /* Send server tree */ this->SendServers(Utils->TreeRoot,s,1); /* Send users and their oper status */ @@ -53,8 +50,8 @@ void TreeSocket::DoBurst(TreeServer* s) this->SendChannelModes(s); this->SendXLines(s); FOREACH_MOD(I_OnSyncNetwork,OnSyncNetwork(Utils->Creator,(void*)this)); - this->WriteLine(endburst); - ServerInstance->SNO->WriteToSnoMask('l',"Finished bursting to \2"+name+"\2."); + this->WriteLine(":" + ServerInstance->Config->GetSID() + " ENDBURST"); + ServerInstance->SNO->WriteToSnoMask('l',"Finished bursting to \2"+ s->GetName()+"\2."); } /** Recursively send the server tree with distances as hops. |