Fixed some bugs
This commit is contained in:
parent
383fab15a6
commit
3aafe342c7
2
music
2
music
@ -1 +1 @@
|
||||
Subproject commit ae7f8c7f3d4121704d229cd8995ec33e4824841b
|
||||
Subproject commit ad24c38923afe23d94452973337a416540e3c7aa
|
@ -303,7 +303,7 @@ command_result QueryClient::handleCommandServerSelect(Command &cmd) {
|
||||
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 && 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user