mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
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",
|
||||
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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue