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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user