summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-12 10:16:58 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-12 10:16:58 +0000
commitfdf211be0017725c349b806baa6656af26dee82e (patch)
treed13af588d31382c1806f71a71df1d31ba591d417 /src
parent0de0e25586bf6153e682a05e1abdb43bc4ee16e4 (diff)
Implement suggestion from Stealth in bug #572: expand <channeltopic> tag into a subsection storing text, setter and set time
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9968 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_httpd_stats.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index efb72639b..ad4723ccb 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -118,7 +118,11 @@ class ModuleHttpStats : public Module
data << "<channelops>" << c->GetOppedUsers()->size() << "</channelops>";
data << "<channelhalfops>" << c->GetHalfoppedUsers()->size() << "</channelhalfops>";
data << "<channelvoices>" << c->GetVoicedUsers()->size() << "</channelvoices>";
- data << "<channeltopic>" << Sanitize(c->topic) << "</channeltopic>";
+ data << "<channeltopic>";
+ data << "<topictext>" << Sanitize(c->topic) << "</topictext>";
+ data << "<setby>" << Sanitize(c->setby) << "</setby>";
+ data << "<settime>" << Sanitize(c->topicset) << "</settime>";
+ data << "</channeltopic>";
data << "<channelmodes>" << Sanitize(c->ChanModes(true)) << "</channelmodes>";
CUList* ulist = c->GetUsers();