diff options
-rw-r--r-- | include/protocol.h | 1 | ||||
-rw-r--r-- | src/modules/m_httpd_stats.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_spanningtree/protocolinterface.cpp | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/include/protocol.h b/include/protocol.h index 87d4ea384..8579f03aa 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -26,6 +26,7 @@ class ProtoServer public: std::string servername; std::string parentname; + std::string gecos; unsigned int usercount; unsigned int opercount; unsigned int latencyms; diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index ad4723ccb..5aa433318 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -121,7 +121,7 @@ class ModuleHttpStats : public Module data << "<channeltopic>"; data << "<topictext>" << Sanitize(c->topic) << "</topictext>"; data << "<setby>" << Sanitize(c->setby) << "</setby>"; - data << "<settime>" << Sanitize(c->topicset) << "</settime>"; + data << "<settime>" << c->topicset << "</settime>"; data << "</channeltopic>"; data << "<channelmodes>" << Sanitize(c->ChanModes(true)) << "</channelmodes>"; CUList* ulist = c->GetUsers(); @@ -161,6 +161,7 @@ class ModuleHttpStats : public Module data << "<server>"; data << "<servername>" << b->servername << "</servername>"; data << "<parentname>" << b->parentname << "</parentname>"; + data << "<gecos>" << b->gecos << "</gecos>"; data << "<usercount>" << b->usercount << "</usercount>"; data << "<opercount>" << b->opercount << "</opercount>"; data << "<lagmillisecs>" << b->latencyms << "</lagmillisecs>"; diff --git a/src/modules/m_spanningtree/protocolinterface.cpp b/src/modules/m_spanningtree/protocolinterface.cpp index 850a27c22..66a18a5dd 100644 --- a/src/modules/m_spanningtree/protocolinterface.cpp +++ b/src/modules/m_spanningtree/protocolinterface.cpp @@ -16,6 +16,7 @@ void SpanningTreeProtocolInterface::GetServerList(ProtoServerList &sl) ps.parentname = s ? s->GetName() : ServerInstance->Config->ServerName; ps.usercount = i->second->GetUserCount(); ps.opercount = i->second->GetOperCount(); + ps.gecos = i->second->GetDesc(); ps.latencyms = i->second->rtt; sl.push_back(ps); } |