diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-12 10:39:03 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-12 10:39:03 +0000 |
commit | e078fae142238765f279b50c309f22a5a0761ce4 (patch) | |
tree | 8aa051aa87d2063225579cc3157544a1c073c43f | |
parent | c0cf560ec2b00f5829a7a40d9c3011cfc845bad6 (diff) |
Add <gecos> field to <server> in XML stats output, also add to ProtoServer. Fixes part of bug #571, reported by Majic.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9971 e03df62e-2008-0410-955e-edbf42e46eb7
-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); } |