mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Add client-side logging of chat messages (#14289)
This commit is contained in:
@@ -382,6 +382,9 @@ void Client::handleCommand_ChatMessage(NetworkPacket *pkt)
|
|||||||
|
|
||||||
chatMessage->type = (ChatMessageType) message_type;
|
chatMessage->type = (ChatMessageType) message_type;
|
||||||
|
|
||||||
|
// log the chat message
|
||||||
|
actionstream << "CHAT: " << wide_to_utf8(unescape_enriched(chatMessage->message)) << std::endl;
|
||||||
|
|
||||||
// @TODO send this to CSM using ChatMessage object
|
// @TODO send this to CSM using ChatMessage object
|
||||||
if (modsLoaded() && m_script->on_receiving_message(
|
if (modsLoaded() && m_script->on_receiving_message(
|
||||||
wide_to_utf8(chatMessage->message))) {
|
wide_to_utf8(chatMessage->message))) {
|
||||||
|
Reference in New Issue
Block a user