Disallow non-channel ops from kicking users

This commit is contained in:
Sam Dodrill 2013-10-09 13:13:51 -07:00
parent de06cf5102
commit 6e14174c95
1 changed files with 2 additions and 0 deletions

View File

@ -335,6 +335,8 @@ can_kick_deop(struct membership *source, struct membership *target)
return 0;
if(is_halfop(source) && is_any_op(target))
return 0;
if(!is_any_op(source))
return 0;
return 1;