summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-07 18:13:58 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-07 18:13:58 +0000
commit0b14c8ef1c2db7cac78db4bb9db6fdb643f814ab (patch)
tree717ba83fb65bba745adaeeb393233368300d4814
parent20cc65ddf508bcc3364363b7e8c624fb94e78a66 (diff)
Show SID on /map
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9403 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree/override_map.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/modules/m_spanningtree/override_map.cpp b/src/modules/m_spanningtree/override_map.cpp
index c5377ad84..01f24eaa1 100644
--- a/src/modules/m_spanningtree/override_map.cpp
+++ b/src/modules/m_spanningtree/override_map.cpp
@@ -79,7 +79,7 @@ void ModuleSpanningTree::ShowMap(TreeServer* Current, User* user, int depth, cha
}
const std::string operdata = IS_OPER(user) ? MapOperInfo(Current) : "";
- snprintf(text, 126, "%s %s%5d [%5.2f%%]%s", Current->GetName().c_str(), spacer, Current->GetUserCount(), percent, operdata.c_str());
+ snprintf(text, 126, "%s (%s)%s%5d [%5.2f%%]%s", Current->GetName().c_str(), Current->GetID().c_str(), spacer, Current->GetUserCount(), percent, operdata.c_str());
totusers += Current->GetUserCount();
totservers++;
strlcpy(&matrix[line][depth],text,126);
@@ -120,23 +120,18 @@ void ModuleSpanningTree::ShowMap(TreeServer* Current, User* user, int depth, cha
// from the nodes. This is not only friendlier on CPU it uses less stack.
int ModuleSpanningTree::HandleMap(const char* const* parameters, int pcnt, User* user)
{
- ServerInstance->Logs->Log("map",DEBUG,"HandleMap");
if (pcnt > 0)
{
- ServerInstance->Logs->Log("remotemap", DEBUG, "remote map request for %s", parameters[0]);
-
/* Remote MAP, the server is within the 1st parameter */
TreeServer* s = Utils->FindServerMask(parameters[0]);
bool ret = false;
if (!s)
{
- ServerInstance->Logs->Log("remotemap", DEBUG, "lolnoserver %s", parameters[0]);
user->WriteServ( "402 %s %s :No such server", user->nick, parameters[0]);
ret = true;
}
else if (s && s != Utils->TreeRoot)
{
- ServerInstance->Logs->Log("remotemap", DEBUG, "lol routing to %s", parameters[0]);
std::deque<std::string> params;
params.push_back(parameters[0]);
@@ -144,10 +139,6 @@ int ModuleSpanningTree::HandleMap(const char* const* parameters, int pcnt, User*
Utils->DoOneToOne(user->uuid, "MAP", params, s->GetName());
ret = true;
}
- else
- {
- ServerInstance->Logs->Log("remotemap", DEBUG, "lol it's me");
- }
// Don't return if s == Utils->TreeRoot (us)
if (ret)