From 14035d4dc08a4f8bb4e634353ffeaea990d7d055 Mon Sep 17 00:00:00 2001 From: Valerie Pond <79415174+ValwareIRC@users.noreply.github.com> Date: Wed, 8 Feb 2023 08:21:19 +0000 Subject: [PATCH] Make qlines for channels work (#247) This fixes a check which was backwards. A qline on a channel would only stop someone from joining if the person was an oper that had immunity. --- src/modules/join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/join.c b/src/modules/join.c index 724931fc3..48e6eb0c9 100644 --- a/src/modules/join.c +++ b/src/modules/join.c @@ -492,7 +492,7 @@ void _do_join(Client *client, int parc, const char *parv[]) } } } - if (ValidatePermissionsForPath("immune:server-ban:deny-channel",client,NULL,NULL,NULL) && (tklban = find_qline(client, name, &ishold))) + if (!ValidatePermissionsForPath("immune:server-ban:deny-channel",client,NULL,NULL,NULL) && (tklban = find_qline(client, name, &ishold))) { sendnumeric(client, ERR_FORBIDDENCHANNEL, name, tklban->ptr.nameban->reason); continue;