]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blob - localoperkill.patch
nickgline: include nick! bit in gline loggin
[irc/quakenet/snircd-patchqueue.git] / localoperkill.patch
1 dont sent local kills by local irc operator upstream
2
3 diff -r df380b7771ea ircd/m_kill.c
4 --- a/ircd/m_kill.c
5 +++ b/ircd/m_kill.c
6 @@ -143,7 +143,9 @@
7 * - wiebe
8 */
9 /* if (IsServer(cptr) || !MyConnect(victim)) { */
10 - sendcmdto_serv_butone(sptr, CMD_KILL, cptr, "%C :%s!%s %s", victim,
11 + /* dont sent kills by local opers upstream though */
12 + if (!(MyUser(sptr) && IsLocOp(sptr) && MyConnect(victim))) {
13 + sendcmdto_serv_butone(sptr, CMD_KILL, cptr, "%C :%s!%s %s", victim,
14 inpath, path, msg);
15
16 /*
17 @@ -151,7 +153,8 @@
18 * the unnecessary QUIT for this. (This flag should never be
19 * set in any other place)
20 */
21 - SetFlag(victim, FLAG_KILLED);
22 + SetFlag(victim, FLAG_KILLED);
23 + }
24
25 /*
26 * Tell the victim she/he has been zapped, but *only* if