From 7c1e6d9364c190c0d450e29dad697abeefe7c114 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Thu, 30 Jan 2020 13:13:18 +0100 Subject: [PATCH] Fixed ban issue --- server/src/client/command_handler/misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/client/command_handler/misc.cpp b/server/src/client/command_handler/misc.cpp index 301fb75..795389e 100644 --- a/server/src/client/command_handler/misc.cpp +++ b/server/src/client/command_handler/misc.cpp @@ -830,7 +830,7 @@ command_result ConnectedClient::handleCommandBanClient(Command &cmd) { return command_result{error::client_unknown}; } - if(!permission::v2::permission_granted(this->calculate_permission(permission::i_client_ban_power, 0), this->server->calculate_permission(permission::i_client_needed_ban_power, target_dbid, ClientType::CLIENT_TEAMSPEAK, 0))) + if(!permission::v2::permission_granted(this->server->calculate_permission(permission::i_client_needed_ban_power, target_dbid, ClientType::CLIENT_TEAMSPEAK, 0)), this->calculate_permission(permission::i_client_ban_power, 0)) return command_result{permission::i_client_ban_power}; if (permission::v2::permission_granted(1, this->server->calculate_permission(permission::b_client_ignore_bans, target_dbid, ClientType::CLIENT_TEAMSPEAK, 0)))