]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - localoperkill.patch
checkoutput: forgot a : in one of the RPL_DATASTR replies
[irc/quakenet/snircd-patchqueue.git] / localoperkill.patch
CommitLineData
8f901a54 1dont sent local kills by local irc operator upstream
2
3diff -r 50cf6951b339 ircd/m_kill.c
4--- a/ircd/m_kill.c Thu Mar 18 13:27:05 2010 +0100
5+++ b/ircd/m_kill.c Thu Mar 18 13:39:16 2010 +0100
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) || !MyUser(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