Use ERR_DISABLED in CHGHOST and STATS e.
This commit is contained in:
parent
bd710c8837
commit
22f2f68a07
2 changed files with 4 additions and 3 deletions
|
@ -240,7 +240,8 @@ mo_chghost(struct Client *client_p, struct Client *source_p,
|
||||||
NOCAPS, CAP_TS6, ":%s ENCAP * CHGHOST %s :%s",
|
NOCAPS, CAP_TS6, ":%s ENCAP * CHGHOST %s :%s",
|
||||||
source_p->name, target_p->name, parv[2]);
|
source_p->name, target_p->name, parv[2]);
|
||||||
#else
|
#else
|
||||||
sendto_one_notice(source_p, ":CHGHOST is disabled");
|
sendto_one_numeric(source_p, ERR_DISABLED, form_str(ERR_DISABLED),
|
||||||
|
"CHGHOST");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -424,8 +424,8 @@ stats_exempt(struct Client *source_p)
|
||||||
|
|
||||||
if(ConfigFileEntry.stats_e_disabled)
|
if(ConfigFileEntry.stats_e_disabled)
|
||||||
{
|
{
|
||||||
sendto_one_numeric(source_p, ERR_NOPRIVILEGES,
|
sendto_one_numeric(source_p, ERR_DISABLED,
|
||||||
form_str (ERR_NOPRIVILEGES));
|
form_str(ERR_DISABLED), "STATS e");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue