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:
parent
d3ae351236
commit
9ac94339dc
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user