Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Commit b956c9d

Browse files
author
Stephen Bennett
committed
Make $j match even if user is +e in the target channel, to prevent use as an invisible banlist
1 parent 9448cf5 commit b956c9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/extb_canjoin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static int eb_canjoin(const char *data, struct Client *client_p,
6161
return EXTBAN_INVALID;
6262
#endif
6363
recurse = 1;
64-
ret = is_banned(chptr2, client_p, NULL, NULL, NULL, NULL) == CHFL_BAN ? EXTBAN_MATCH : EXTBAN_NOMATCH;
64+
ret = is_banned(chptr2, client_p, NULL, NULL, NULL, NULL) != 0 ? EXTBAN_MATCH : EXTBAN_NOMATCH;
6565
recurse = 0;
6666
return ret;
6767
}

0 commit comments

Comments
 (0)