Fixed some bugs

This commit is contained in:
WolverinDEV 2020-03-05 14:33:28 +01:00
parent 383fab15a6
commit 3aafe342c7
2 changed files with 2 additions and 2 deletions

2
music

@ -1 +1 @@
Subproject commit ae7f8c7f3d4121704d229cd8995ec33e4824841b Subproject commit ad24c38923afe23d94452973337a416540e3c7aa

View File

@ -303,7 +303,7 @@ command_result QueryClient::handleCommandServerSelect(Command &cmd) {
target = serverInstance->getVoiceServerManager()->findServerById(static_cast<ServerId>(stol(parm))); target = serverInstance->getVoiceServerManager()->findServerById(static_cast<ServerId>(stol(parm)));
if(!target && (!cmd[0].has("0") && (!cmd[0].has("sid") || !cmd["sid"] == 0))) return command_result{error::server_invalid_id, "Invalid server id"}; if(!target && (!cmd[0].has("0") && (!cmd[0].has("sid") || !cmd["sid"] == 0))) return command_result{error::server_invalid_id, "Invalid server id"};
if(target && target->getState() != ServerState::ONLINE) return command_result{error::server_is_not_running}; if(target && target->getState() != ServerState::ONLINE && target->getState() != ServerState::OFFLINE) return command_result{error::server_is_not_running};
if(target == this->server) return command_result{error::ok}; if(target == this->server) return command_result{error::ok};
if(target) { if(target) {