]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - sethostprotocolviolation.patch
welcome: use max variable instead of WELCOME_MAX_ENTRIES and make check for inserting...
[irc/quakenet/snircd-patchqueue.git] / sethostprotocolviolation.patch
CommitLineData
00063b49 1protocol 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
3diff -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