diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-07-21 18:18:33 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-07-24 18:12:22 +0200 |
commit | c6b911132caba237f86280d1b2cb32ad3123f0da (patch) | |
tree | 8713ae256f7cdf66865b1b29de3e088376d6a59a /src/modules/m_spanningtree/override_map.cpp | |
parent | d763f0b2eeee0e1c9cade555ce21337a1be629df (diff) |
m_spanningtree Change the type of TreeServer::ServerName to std::string
Diffstat (limited to 'src/modules/m_spanningtree/override_map.cpp')
-rw-r--r-- | src/modules/m_spanningtree/override_map.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/override_map.cpp b/src/modules/m_spanningtree/override_map.cpp index 72128a1c3..5dcb6f7cf 100644 --- a/src/modules/m_spanningtree/override_map.cpp +++ b/src/modules/m_spanningtree/override_map.cpp @@ -55,14 +55,13 @@ void ModuleSpanningTree::ShowMap(TreeServer* Current, User* user, int depth, int memset(myname, ' ', depth); int w = depth; - std::string servername = Current->GetName(); if (user->IsOper()) { - w += snprintf(myname + depth, 99 - depth, "%s (%s)", servername.c_str(), Current->GetID().c_str()); + w += snprintf(myname + depth, 99 - depth, "%s (%s)", Current->GetName().c_str(), Current->GetID().c_str()); } else { - w += snprintf(myname + depth, 99 - depth, "%s", servername.c_str()); + w += snprintf(myname + depth, 99 - depth, "%s", Current->GetName().c_str()); } memset(myname + w, ' ', 100 - w); if (w > maxnamew) |