diff options
Diffstat (limited to 'src/core/os_stats.c')
-rw-r--r-- | src/core/os_stats.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/os_stats.c b/src/core/os_stats.c index 85bdd1c90..b00cab98f 100644 --- a/src/core/os_stats.c +++ b/src/core/os_stats.c @@ -364,9 +364,16 @@ int do_stats(User * u) get_chanserv_stats(&count, &mem); notice_lang(s_OperServ, u, OPER_STATS_CHANSERV_MEM, count, (mem + 512) / 1024); - get_botserv_stats(&count, &mem); - notice_lang(s_OperServ, u, OPER_STATS_BOTSERV_MEM, count, + if (s_BotServ) { + get_botserv_stats(&count, &mem); + notice_lang(s_OperServ, u, OPER_STATS_BOTSERV_MEM, count, (mem + 512) / 1024); + } + if (s_HostServ) { + get_hostserv_stats(&count, &mem); + notice_lang(s_OperServ, u, OPER_STATS_HOSTSERV_MEM, count, + (mem + 512) / 1024); + } get_operserv_stats(&count, &mem); notice_lang(s_OperServ, u, OPER_STATS_OPERSERV_MEM, count, (mem + 512) / 1024); |