]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blob - checkparanoidonchannelbeforekick.patch
refresh patches
[irc/quakenet/snircd-patchqueue.git] / checkparanoidonchannelbeforekick.patch
1 # HG changeset patch
2 # Parent b73ff0fe3073162cc97c1a94ccdbce9345b42b6d
3
4 diff -r b73ff0fe3073 ircd/m_kick.c
5 --- a/ircd/m_kick.c Fri Jul 19 22:36:25 2013 +0100
6 +++ b/ircd/m_kick.c Fri Jul 19 22:37:47 2013 +0100
7 @@ -141,7 +141,8 @@
8 return send_reply(sptr, ERR_ISREALSERVICE, cli_name(who), chptr->chname);
9
10 if (!IsXtraOp(sptr) && (who!=sptr)) {
11 - if (IsParanoid(who) {
12 + /* the victim is paranoid AND on the channel but not a zombie - wiebe */
13 + if (IsParanoid(who) && (member = find_member_link(chptr, who)) && !IsZombie(member)) {
14 sendcmdto_one(&me, CMD_NOTICE, who, "%C :kick: %s tried to /KICK you from %s.", who, cli_name(sptr), chptr->chname);
15 }
16 return send_reply(sptr, ERR_ISCHANSERVICE, cli_name(who), chptr->chname);