From 0b14c8ef1c2db7cac78db4bb9db6fdb643f814ab Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 7 Apr 2008 18:13:58 +0000 Subject: Show SID on /map git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9403 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/override_map.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/modules/m_spanningtree') 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 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) -- cgit v1.2.3