From 04e35b16d86dd0115b3bcd0749398ec957cf0700 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 28 May 2007 15:03:52 +0000 Subject: Show IPs that a port is bound to in /stats p, don't remove duplicate ports anymore, since we know what IP a port belongs to. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7173 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index c82fd8bdd..bebb69012 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -671,7 +671,10 @@ int ModuleSpanningTree::OnStats(char statschar, userrec* user, string_list &resu */ if (Utils->Bindings[i]->port) { - results.push_back(ConvToStr(ServerInstance->Config->ServerName) + " 249 "+user->nick+" :p:"+ConvToStr(Utils->Bindings[i]->port)+" (X servers) "+ + std::string ip = Utils->Bindings[i]->IP; + if (ip.empty()) + ip = "*"; + results.push_back(ConvToStr(ServerInstance->Config->ServerName) + " 249 "+user->nick+" :" + ip + ":" + ConvToStr(Utils->Bindings[i]->port)+" (X servers) "+ ServerInstance->Config->ports[i]->GetDescription()); } } -- cgit v1.2.3