Use ERR_DISABLED in CHGHOST and STATS e.

This commit is contained in:
Jilles Tjoelker 2008-03-30 20:02:55 +02:00
parent bd710c8837
commit 22f2f68a07
2 changed files with 4 additions and 3 deletions

View 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;

View 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;
}