Disallow non-channel ops from kicking users
This commit is contained in:
parent
de06cf5102
commit
6e14174c95
|
@ -335,6 +335,8 @@ can_kick_deop(struct membership *source, struct membership *target)
|
||||||
return 0;
|
return 0;
|
||||||
if(is_halfop(source) && is_any_op(target))
|
if(is_halfop(source) && is_any_op(target))
|
||||||
return 0;
|
return 0;
|
||||||
|
if(!is_any_op(source))
|
||||||
|
return 0;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue