This commit is contained in:
Sokomine 2024-05-17 14:39:18 +07:00 committed by GitHub
commit 2a0d02bad7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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))) {