From 3aafe342c7338a0f554b420405a4b8c7982fa31a Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Thu, 5 Mar 2020 14:33:28 +0100 Subject: [PATCH] Fixed some bugs --- music | 2 +- server/src/client/query/QueryClientCommands.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {