From 63dd387b13211147ca290e6e3f0f42adaeaeea53 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 4 Feb 2012 15:02:17 +0100 Subject: [PATCH] Require all modes to be set for + part in $m extban. This is like the - part requiring none of the modes to be set and is more useful because the old behaviour can be emulated with multiple bans. --- extensions/extb_usermode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/extb_usermode.c b/extensions/extb_usermode.c index 353636625..eb087b310 100644 --- a/extensions/extb_usermode.c +++ b/extensions/extb_usermode.c @@ -73,5 +73,7 @@ static int eb_usermode(const char *data, struct Client *client_p, } } - return ((client_p->umodes & modes_ack) && !(client_p->umodes & modes_nak)) ? EXTBAN_MATCH : EXTBAN_NOMATCH; + return ((client_p->umodes & modes_ack) == modes_ack && + !(client_p->umodes & modes_nak)) ? + EXTBAN_MATCH : EXTBAN_NOMATCH; }