Fixed ban issue
This commit is contained in:
parent
8d186c18cd
commit
7c1e6d9364
@ -830,7 +830,7 @@ command_result ConnectedClient::handleCommandBanClient(Command &cmd) {
|
|||||||
return command_result{error::client_unknown};
|
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};
|
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)))
|
if (permission::v2::permission_granted(1, this->server->calculate_permission(permission::b_client_ignore_bans, target_dbid, ClientType::CLIENT_TEAMSPEAK, 0)))
|
||||||
|
Loading…
Reference in New Issue
Block a user