]> jfr.im git - solanum.git/commitdiff
Use ERR_DISABLED in CHGHOST and STATS e.
authorJilles Tjoelker <redacted>
Sun, 30 Mar 2008 18:02:55 +0000 (20:02 +0200)
committerJilles Tjoelker <redacted>
Sun, 30 Mar 2008 18:02:55 +0000 (20:02 +0200)
modules/m_chghost.c
modules/m_stats.c

index f4778e013294da1d49757b5d52f2a7de22935c40..ffb6aefad14fb0004a5a17e29fce5d885506e837 100644 (file)
@@ -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;
index 6e7552e9e8e72764c2fc822fa8286eccd46c6e8a..d639f3e2f20f52559f039c6e8c3e95793a699a83 100644 (file)
@@ -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;
        }