1
0
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:
Bram Matthys
2024-06-30 19:26:02 +02:00
parent bc7c69dd20
commit 53d97e020f
+9 -1
View File
@@ -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);