From 22f2f68a07672633687d331a3db63fe07d49b657 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 30 Mar 2008 20:02:55 +0200 Subject: [PATCH] Use ERR_DISABLED in CHGHOST and STATS e. --- modules/m_chghost.c | 3 ++- modules/m_stats.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/m_chghost.c b/modules/m_chghost.c index f4778e013..ffb6aefad 100644 --- a/modules/m_chghost.c +++ b/modules/m_chghost.c @@ -240,7 +240,8 @@ mo_chghost(struct Client *client_p, struct Client *source_p, NOCAPS, CAP_TS6, ":%s ENCAP * CHGHOST %s :%s", source_p->name, target_p->name, parv[2]); #else - sendto_one_notice(source_p, ":CHGHOST is disabled"); + sendto_one_numeric(source_p, ERR_DISABLED, form_str(ERR_DISABLED), + "CHGHOST"); #endif return 0; diff --git a/modules/m_stats.c b/modules/m_stats.c index 6e7552e9e..d639f3e2f 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -424,8 +424,8 @@ stats_exempt(struct Client *source_p) if(ConfigFileEntry.stats_e_disabled) { - sendto_one_numeric(source_p, ERR_NOPRIVILEGES, - form_str (ERR_NOPRIVILEGES)); + sendto_one_numeric(source_p, ERR_DISABLED, + form_str(ERR_DISABLED), "STATS e"); return; }