summaryrefslogtreecommitdiff
path: root/modules/m_stats.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-31 18:59:22 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-31 18:59:22 +0000
commit92e28d4047e9426ceb9ab54aa64a9cf8ff03ed49 (patch)
tree12d6666e4d74298b662271ffdca2b0735eb1f48a /modules/m_stats.c
parent99740e83f2f8a94467ba301431ca2c4192c4c2ed (diff)
- Implement motd{} configuration blocks based on ircu's implementation
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2151 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_stats.c')
-rw-r--r--modules/m_stats.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/m_stats.c b/modules/m_stats.c
index a903e92..12bb862 100644
--- a/modules/m_stats.c
+++ b/modules/m_stats.c
@@ -48,6 +48,7 @@
#include "whowas.h"
#include "watch.h"
#include "irc_res.h"
+#include "motd.h"
const char *from, *to;
@@ -526,6 +527,7 @@ stats_memory(struct Client *source_p, int parc, char *parv[])
totww = wwu * sizeof(struct Client) + wwm;
+ motd_memory_count(source_p);
count_ip_hash(&number_ips_stored,&mem_ips_stored);
sendto_one(source_p, ":%s %d %s z :iphash %u(%llu)",
me.name, RPL_STATSDEBUG, source_p->name,
@@ -1562,7 +1564,7 @@ static const struct StatsStruct
{ 's', stats_service, 1, 0 },
{ 'S', stats_service, 1, 0 },
{ 't', stats_tstats, 1, 0 },
- { 'T', stats_tstats, 1, 0 },
+ { 'T', motd_report, 1, 0 },
{ 'u', stats_uptime, 0, 0 },
{ 'U', stats_shared, 1, 0 },
{ 'v', stats_servers, 1, 0 },