1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-02-23 20:50:01 +00:00

KICK-protect IRC services

This commit is contained in:
Alexander Barton 2012-10-06 19:23:05 +02:00
parent d3ae351236
commit 9ac94339dc

View File

@ -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,