summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-01-25 12:28:39 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-01-25 12:28:39 +0100
commitf3f8eae2cd68d8ce2c57f5df58db5833fb659cf5 (patch)
treea4c6114b60a5cc62cab420283f454c7cf830e561 /src/modules/m_spanningtree
parent074727e7a74f8dcef6c250faf6a757f0274d27db (diff)
Omit the server name internally when building a /STATS reply and prepend it later
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/override_stats.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/override_stats.cpp b/src/modules/m_spanningtree/override_stats.cpp
index 8affec7b7..14b3f5ef7 100644
--- a/src/modules/m_spanningtree/override_stats.cpp
+++ b/src/modules/m_spanningtree/override_stats.cpp
@@ -31,9 +31,9 @@ ModResult ModuleSpanningTree::OnStats(char statschar, User* user, string_list &r
for (std::vector<reference<Link> >::iterator i = Utils->LinkBlocks.begin(); i != Utils->LinkBlocks.end(); ++i)
{
Link* L = *i;
- results.push_back(std::string(ServerInstance->Config->ServerName)+" 213 "+user->nick+" "+statschar+" *@"+(L->HiddenFromStats ? "<hidden>" : L->IPAddr)+" * "+(*i)->Name.c_str()+" "+ConvToStr(L->Port)+" "+(L->Hook.empty() ? "plaintext" : L->Hook));
+ results.push_back("213 "+user->nick+" "+statschar+" *@"+(L->HiddenFromStats ? "<hidden>" : L->IPAddr)+" * "+(*i)->Name.c_str()+" "+ConvToStr(L->Port)+" "+(L->Hook.empty() ? "plaintext" : L->Hook));
if (statschar == 'c')
- results.push_back(std::string(ServerInstance->Config->ServerName)+" 244 "+user->nick+" H * * "+L->Name.c_str());
+ results.push_back("244 "+user->nick+" H * * "+L->Name.c_str());
}
return MOD_RES_DENY;
}
@@ -44,7 +44,7 @@ ModResult ModuleSpanningTree::OnStats(char statschar, User* user, string_list &r
{
std::string name = i->second->getString("server");
if (!name.empty())
- results.push_back(ServerInstance->Config->ServerName+" 248 "+user->nick+" U "+name);
+ results.push_back("248 "+user->nick+" U "+name);
}
return MOD_RES_DENY;
}