Update to new API

This commit is contained in:
wincent
2024-01-16 21:46:44 +01:00
parent a91cf3adc7
commit 7b7c0622b3
8 changed files with 35 additions and 157 deletions

View File

@@ -1309,6 +1309,12 @@ void HandlePacket(Packet* packet) {
std::string sMessage = GeneralUtils::UTF16ToWTF8(chatMessage.message);
LOG("%s: %s", playerName.c_str(), sMessage.c_str());
ChatPackets::SendChatMessage(packet->systemAddress, chatMessage.chatChannel, playerName, user->GetLoggedInChar(), isMythran, chatMessage.message);
auto* recorder = Cinema::Recording::Recorder::GetRecorder(user->GetLoggedInChar());
if (recorder != nullptr) {
recorder->AddRecord(new Cinema::Recording::SpeakRecord(sMessage));
}
}
break;