From 66127b6b4558355f88e527566295eac7f44790a7 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 11 Jul 2006 20:00:35 +0000 Subject: Add voice, halfop and op counts git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4345 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_httpd_stats.cpp | 12 ++++++++++-- 1 file 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 << "
"; data << "

Channels

"; data << ""; - data << ""; + data << ""; /* 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 << ""; + chanrec* c = Srv->FindChannel(a->second.c_str()); + if (c) + { + data << ""; + data << ""; + data << ""; + data << ""; + data << ""; + } } data << "
UsersCount
UsersCount@%+
" << a->first << "" << a->second << "
" << a->first << "" << a->second << "" << c->GetOppedUsers()->size() << "" << c->GetHalfoppedUsers()->size() << "" << c->GetVoicedUsers()->size() << "
"; -- cgit v1.2.3