log chat messages to debug.txt

This commit is contained in:
Sokomine 2024-01-20 17:35:39 +01:00
parent 8cbd629010
commit bd7e2680f9
1 changed files with 3 additions and 0 deletions

View File

@ -435,6 +435,9 @@ void Client::handleCommand_ChatMessage(NetworkPacket *pkt)
chatMessage->type = (ChatMessageType) message_type;
// log the chat message
actionstream << "[Chat] " << wide_to_utf8(chatMessage->message) << std::endl;
// @TODO send this to CSM using ChatMessage object
if (modsLoaded() && m_script->on_receiving_message(
wide_to_utf8(chatMessage->message))) {