]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blob - addhacktypetohackkick.patch
Update patchset for latest ircu changes
[irc/quakenet/snircd-patchqueue.git] / addhacktypetohackkick.patch
1 make HACK notices for KICKs consitent with other HACK notices, add the type of HACK to the message (2 or 4)
2
3 diff -r 9c1421eb77c1 ircd/m_kick.c
4 --- a/ircd/m_kick.c Sun Jan 11 22:38:39 2009 +0000
5 +++ b/ircd/m_kick.c Sun Jan 11 22:38:39 2009 +0000
6 @@ -239,7 +239,7 @@
7 if (IsServer(sptr) &&
8 !IsBurstOrBurstAck(sptr) &&
9 sptr!=cli_user(who)->server)
10 - sendto_opmask_butone(0, SNO_HACK4, "HACK: %C KICK %H %C %s", sptr, chptr,
11 + sendto_opmask_butone(0, SNO_HACK4, "HACK(4): %C KICK %H %C %s", sptr, chptr,
12 who, comment);
13
14 /* Unless someone accepted it downstream (or the user isn't on the channel
15 @@ -248,7 +248,7 @@
16 */
17 if (!IsServer(sptr) && member && cli_from(who) != cptr &&
18 (!(sptr_link = find_member_link(chptr, sptr)) || !IsChanOp(sptr_link))) {
19 - sendto_opmask_butone(0, SNO_HACK2, "HACK: %C KICK %H %C %s", sptr, chptr,
20 + sendto_opmask_butone(0, SNO_HACK2, "HACK(2): %C KICK %H %C %s", sptr, chptr,
21 who, comment);
22
23 sendcmdto_one(who, CMD_JOIN, cptr, "%H", chptr);