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

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.
This commit is contained in:
Valerie Pond
2023-02-08 08:21:19 +00:00
committed by GitHub
parent dd830261db
commit 14035d4dc0
+1 -1
View File
@@ -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;