From 80b3a83cbf095048d20b596105262a69d5515364 Mon Sep 17 00:00:00 2001 From: Sam Dodrill Date: Fri, 10 Jan 2014 18:16:08 -0800 Subject: [PATCH] src/channel: Fix ordering in kick permission logic --- src/channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channel.c b/src/channel.c index 89e433b..44c1ba3 100644 --- a/src/channel.c +++ b/src/channel.c @@ -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))