0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 16:00:57 +01:00

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.
This commit is contained in:
Jilles Tjoelker 2012-02-04 15:02:17 +01:00
parent 8bedf01d19
commit 63dd387b13

View file

@ -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;
} }