diff --git a/music b/music index ae7f8c7..ad24c38 160000 --- a/music +++ b/music @@ -1 +1 @@ -Subproject commit ae7f8c7f3d4121704d229cd8995ec33e4824841b +Subproject commit ad24c38923afe23d94452973337a416540e3c7aa diff --git a/server/src/client/query/QueryClientCommands.cpp b/server/src/client/query/QueryClientCommands.cpp index b83899c..c1e4589 100644 --- a/server/src/client/query/QueryClientCommands.cpp +++ b/server/src/client/query/QueryClientCommands.cpp @@ -303,7 +303,7 @@ command_result QueryClient::handleCommandServerSelect(Command &cmd) { target = serverInstance->getVoiceServerManager()->findServerById(static_cast(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) {