summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-28 15:42:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-28 15:42:33 +0000
commit63c0316722df40d5d25f0ed6765cbfec3de13ebf (patch)
tree0ae27cb5f22248dcbc32dc042e493183a6df9130 /src/modules
parentcdbf2526f79f0ec4e90395158011062b7a198bcf (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree/main.cpp6
1 files changed, 5 insertions, 1 deletions
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;