]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - localoperkill.patch
whonoidle: hide idle time of users with mode +I in non-HIS setup in WHO
[irc/quakenet/snircd-patchqueue.git] / localoperkill.patch
CommitLineData
8f901a54 1dont sent local kills by local irc operator upstream
2
fdb34442 3diff -r a58c741e7e71 ircd/m_kill.c
4--- a/ircd/m_kill.c
5+++ b/ircd/m_kill.c
8f901a54 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 */
fdb34442 12+ if (!(MyUser(sptr) && IsLocOp(sptr) && MyUser(victim))) {
8f901a54 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