src/channel: Fix ordering in kick permission logic

This commit is contained in:
Sam Dodrill 2014-01-10 18:16:08 -08:00
parent 3cfbe05aff
commit 80b3a83cbf
1 changed files with 2 additions and 2 deletions

View File

@ -327,10 +327,10 @@ can_kick_deop(struct membership *source, struct membership *target)
if(is_owner(source))
return 1;
if(is_admin(source) && is_admin(target))
return 1;
if(is_admin(source) && is_owner(target))
return 0;
if(is_admin(source) && is_admin(target))
return 1;
if(is_chanop(source) && is_owner(target))
return 0;
if(is_chanop(source) && is_admin(target))