From 6e14174c95d426d7e05c99f39eefa15532a31910 Mon Sep 17 00:00:00 2001 From: Sam Dodrill Date: Wed, 9 Oct 2013 13:13:51 -0700 Subject: [PATCH] Disallow non-channel ops from kicking users --- src/channel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/channel.c b/src/channel.c index 6002a09..39c5043 100644 --- a/src/channel.c +++ b/src/channel.c @@ -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;