Some issue fixes

This commit is contained in:
WolverinDEV
2020-02-16 19:02:06 +01:00
parent 96b5ccd17d
commit b98c5f8907
4 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ command_result ConnectedClient::handleCommandMusicBotCreate(Command& cmd) {
if(!channel) {
if(cmd[0].has("cid")) return command_result{error::channel_invalid_id};
} else {
if(!this->calculate_and_get_join_state(channel))
if(this->calculate_and_get_join_state(channel) != permission::ok)
channel = nullptr;
}
if(!channel)