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;