diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-11 20:00:35 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-11 20:00:35 +0000 |
commit | 66127b6b4558355f88e527566295eac7f44790a7 (patch) | |
tree | 9f93151640c2f5e929bb148bf9cb5a0fe586e2fa /src | |
parent | 8185b9cbe7cb505277d4d775b202892393b61cc0 (diff) |
Add voice, halfop and op counts
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4345 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_httpd_stats.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index d8d71f78d..2dac14e20 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -136,7 +136,7 @@ class ModuleHttpStats : public Module data << "<DIV ID='CHANNELS'>"; data << "<H2>Channels</H2>"; data << "<TABLE>"; - data << "<TR><TH>Users</TH><TH>Count</TH></TR>"; + data << "<TR><TH>Users</TH><TH>Count</TH><TH>@</TH><TH>%</TH><TH>+</TH></TR>"; /* If the list has changed since last time it was displayed, re-sort it * this time only (not every time, as this would be moronic) @@ -147,7 +147,15 @@ class ModuleHttpStats : public Module int n = 0; for (SortedIter a = so->begin(); ((a != so->end()) && (n < 25)); a++, n++) { - data << "<TR><TD>" << a->first << "</TD><TD>" << a->second << "</TD></TR>"; + chanrec* c = Srv->FindChannel(a->second.c_str()); + if (c) + { + data << "<TR><TD>" << a->first << "</TD><TD>" << a->second << "</TD>"; + data << "<TD>" << c->GetOppedUsers()->size() << "</TD>"; + data << "<TD>" << c->GetHalfoppedUsers()->size() << "</TD>"; + data << "<TD>" << c->GetVoicedUsers()->size() << "</TD>"; + data << "</TR>"; + } } data << "</TABLE>"; |