mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-05 03:13:14 +02:00
Fix for last commit: except ban { } was not checked for ban user { } blocks
This commit is contained in:
+9
-1
@@ -3413,7 +3413,15 @@ int find_tkline_match_matcher(Client *client, int skip_soft, TKL *tkl)
|
||||
|
||||
/* For config file ban { } we use security groups instead of simple user/host */
|
||||
if (tkl->ptr.serverban->match)
|
||||
return user_allowed_by_security_group(client, tkl->ptr.serverban->match);
|
||||
{
|
||||
if (user_allowed_by_security_group(client, tkl->ptr.serverban->match))
|
||||
{
|
||||
if (find_tkl_exception(tkl->type, client))
|
||||
return 0; /* exempted */
|
||||
return 1; /* banned */
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
tkl_uhost(tkl, uhost, sizeof(uhost), NO_SOFT_PREFIX);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user