]>
Commit | Line | Data |
---|---|---|
edb26b39 P |
1 | # HG changeset patch |
2 | # Parent 4b254f0e0c428948fd7339bfffcba24088665cb3 | |
3 | ||
4 | diff -r 4b254f0e0c42 ircd/m_kick.c | |
5 | --- a/ircd/m_kick.c Mon Jul 15 00:09:00 2013 +0100 | |
6 | +++ b/ircd/m_kick.c Mon Jul 15 00:10:07 2013 +0100 | |
7 | @@ -136,11 +136,17 @@ | |
8 | * Allow +X'ed users to kick +k'ed, but not U-lined services. | |
9 | * --Bigfoot | |
10 | */ | |
11 | - if (IsChannelService(who) && IsService(cli_user(who)->server)) | |
12 | - return send_reply(sptr, ERR_ISREALSERVICE, cli_name(who), chptr->chname); | |
13 | + if (IsChannelService(who)) { | |
14 | + if (IsService(cli_user(who)->server)) | |
15 | + return send_reply(sptr, ERR_ISREALSERVICE, cli_name(who), chptr->chname); | |
16 | ||
17 | - if (IsChannelService(who) && !IsXtraOp(sptr) && (who!=sptr)) | |
18 | - return send_reply(sptr, ERR_ISCHANSERVICE, cli_name(who), chptr->chname); | |
19 | + if (!IsXtraOp(sptr) && (who!=sptr)) { | |
20 | + if (IsParanoid(who) { | |
21 | + sendcmdto_one(&me, CMD_NOTICE, who, "%C :kick: %s tried to /KICK you from %s.", who, cli_name(sptr), chptr->chname); | |
22 | + } | |
23 | + return send_reply(sptr, ERR_ISCHANSERVICE, cli_name(who), chptr->chname); | |
24 | + } | |
25 | + } | |
26 | ||
27 | /* Prevent kicking opers from local channels -DM- */ | |
28 | if (IsLocalChannel(chptr->chname) && HasPriv(who, PRIV_DEOP_LCHAN)) |