mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +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:
parent
8bedf01d19
commit
63dd387b13
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue