mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 09:50:29 +00:00
IRC operators w/OperCanMode can kick anyone
This commit is contained in:
parent
1136b97690
commit
10c7ba99e7
@ -360,6 +360,11 @@ Channel_Kick(CLIENT *Peer, CLIENT *Target, CLIENT *Origin, const char *Name,
|
|||||||
!Channel_UserHasMode(chan, Target, 'o'))
|
!Channel_UserHasMode(chan, Target, 'o'))
|
||||||
can_kick = true;
|
can_kick = true;
|
||||||
|
|
||||||
|
/* IRC operators & IRCd with OperCanMode enabled
|
||||||
|
* can kick anyways regardless of privilege */
|
||||||
|
else if(Client_HasMode(Origin, 'o') && Conf_OperCanMode)
|
||||||
|
can_kick = true;
|
||||||
|
|
||||||
if(!can_kick) {
|
if(!can_kick) {
|
||||||
IRC_WriteErrClient(Origin, ERR_CHANOPPRIVTOOLOW_MSG,
|
IRC_WriteErrClient(Origin, ERR_CHANOPPRIVTOOLOW_MSG,
|
||||||
Client_ID(Origin), Name);
|
Client_ID(Origin), Name);
|
||||||
|
Loading…
Reference in New Issue
Block a user