Music bot fix

This commit is contained in:
WolverinDEV
2020-04-04 11:59:33 +02:00
parent f830a8023d
commit a1ea11a196
3 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -875,8 +875,11 @@ command_result ConnectedClient::handleCommandPlaylistSongList(ts::Command &cmd)
}
if(index > 0)
this->sendCommand(result);
if(this->getExternalType() == ClientType::CLIENT_TEAMSPEAK)
this->sendCommand(ts::command_builder{"notifyplaylistsonglistfinished"});
if(this->getExternalType() == ClientType::CLIENT_TEAMSPEAK) {
ts::command_builder finish{"notifyplaylistsonglistfinished"};
finish.put(0, "playlist_id", playlist->playlist_id());
this->sendCommand(finish);
}
return command_result{error::ok};
}