]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blob - sethostprotocolviolation.patch
snircdumodescheckisanoper: check IsAnOper() (local or global) instead of IsOper(...
[irc/quakenet/snircd-patchqueue.git] / sethostprotocolviolation.patch
1 protocol violation for a bad user@host in remote sethost is not cptr's fault, but sptr, as it is only checked at the target's server
2
3 diff -r 11557b3c0a69 ircd/m_sethost.c
4 --- a/ircd/m_sethost.c
5 +++ b/ircd/m_sethost.c
6 @@ -213,7 +213,7 @@
7
8 ircd_snprintf(0, hostmask, USERLEN + HOSTLEN + 2, "%s@%s", parv[2], parv[3]);
9 if (!is_hostmask(hostmask))
10 - return protocol_violation(cptr, "Bad Host mask %s for user %s", hostmask, cli_name(target));
11 + return protocol_violation(sptr, "Bad Host mask %s for user %s", hostmask, cli_name(target));
12
13 sendcmdto_common_channels_butone(target, CMD_QUIT, target, ":Host change");
14