mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
log chat messages to debug.txt
This commit is contained in:
parent
8cbd629010
commit
bd7e2680f9
1 changed files with 3 additions and 0 deletions
|
@ -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))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue