From 92e28d4047e9426ceb9ab54aa64a9cf8ff03ed49 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 31 May 2013 18:59:22 +0000 Subject: - 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 --- modules/m_stats.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/m_stats.c') 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 }, -- cgit