1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 15:43:12 +02:00

Fix +I ~inherit:#chan (invite exceptions)

This commit is contained in:
Bram Matthys
2024-09-09 16:27:23 +02:00
parent 1a2d93778e
commit 10ec67d163
3 changed files with 10 additions and 6 deletions
+7 -4
View File
@@ -290,9 +290,8 @@ int extban_inherit_is_banned(BanContext *b)
{
Channel *channel;
BanContext *newctx;
Ban *ret;
int ret = 0;
const char *errmsg = NULL;
int retval;
if (extban_inherit_nested)
return 0;
@@ -305,8 +304,12 @@ int extban_inherit_is_banned(BanContext *b)
return 0;
extban_inherit_nested++;
ret = is_banned(b->client, channel, BANCHK_JOIN, NULL, &errmsg);
if (b->ban_type == EXBTYPE_BAN)
ret = is_banned(b->client, channel, BANCHK_JOIN, NULL, &errmsg) ? 1 : 0;
else if (b->ban_type == EXBTYPE_INVEX)
ret = find_invex(channel, b->client);
/* todo: else if (b->ban_type == EXBTYPE_EXCEPT.... */
extban_inherit_nested--;
return ret ? 1 : 0;
return ret;
}