From 63c0316722df40d5d25f0ed6765cbfec3de13ebf Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 28 May 2007 15:42:33 +0000 Subject: Display the proper transports for server ports *slap* :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7175 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 9e188b49d..0fddd6e0e 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -665,8 +665,12 @@ int ModuleSpanningTree::OnStats(char statschar, userrec* user, string_list &resu if (ip.empty()) ip = "*"; + std::string transport("plaintext"); + if (Utils->Bindings[i]->GetHook()) + transport = InspSocketNameRequest(this, Utils->Bindings[i]->GetHook()).Send(); + results.push_back(ConvToStr(ServerInstance->Config->ServerName) + " 249 "+user->nick+" :" + ip + ":" + ConvToStr(Utils->Bindings[i]->port)+ - " (server, " + ServerInstance->Config->ports[i]->GetDescription() + ")"); + " (server, " + transport + ")"); } } return 0; -- cgit v1.2.3