mirror of https://github.com/minetest/minetest.git
log chat messages to debug.txt
This commit is contained in:
parent
8cbd629010
commit
bd7e2680f9
|
@ -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…
Reference in New Issue