Module: ngircd.git Branch: master Commit: 9ac94339dca746d830a877944e30d1cc9c45c47f URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=9ac94...
Author: Alexander Barton alex@barton.de Date: Sat Oct 6 19:23:05 2012 +0200
KICK-protect IRC services
---
src/ngircd/channel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c index c679dae..f3c74dc 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,
ngircd-commits@lists.barton.de