From: Alexander Barton Date: Sat, 6 Oct 2012 17:23:05 +0000 (+0200) Subject: KICK-protect IRC services X-Git-Tag: rel-20-rc1~47^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ac94339dca746d830a877944e30d1cc9c45c47f;p=ngircd KICK-protect IRC services --- diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c index c679daeb..f3c74dc6 100644 --- a/src/ngircd/channel.c +++ b/src/ngircd/channel.c @@ -330,7 +330,8 @@ Channel_Kick(CLIENT *Peer, CLIENT *Target, CLIENT *Origin, const char *Name, /* Channel mode 'Q' and user mode 'q' on target: nobody but * IRC Operators and servers can kick the target user */ if ((strchr(Channel_Modes(chan), 'Q') - || Client_HasMode(Target, 'q')) + || Client_HasMode(Target, 'q') + || Client_Type(Target) == CLIENT_SERVICE) && !Client_HasMode(Origin, 'o')) { IRC_WriteStrClient(Origin, ERR_KICKDENY_MSG, Client_ID(Origin), Name,