mirror of
https://github.com/minetest/minetest.git
synced 2025-07-06 01:40:21 +02:00
log chat messages to debug.txt
This commit is contained in:
@ -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))) {
|
||||
|
Reference in New Issue
Block a user