aboutsummaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-01-21 21:44:37 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-03-13 23:56:05 +0100
commitcb3a61f8db6b7020dd69f7786a1086f6fe014dfc (patch)
treeef2d2848a83d9937c74c95e800775f454bfed28e /src/network
parent2efae3ffd720095222c800e016286a45c9fe1e5c (diff)
downloadminetest-cb3a61f8db6b7020dd69f7786a1086f6fe014dfc.tar.gz
minetest-cb3a61f8db6b7020dd69f7786a1086f6fe014dfc.tar.bz2
minetest-cb3a61f8db6b7020dd69f7786a1086f6fe014dfc.zip
[CSM] Add method that display chat to client-sided lua. (#5089) (#5091)
* squashed: [Client-sided scripting] Don't register functions that don't work. (#5091)
Diffstat (limited to 'src/network')
-rw-r--r--src/network/clientpackethandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp
index f1c44c7d8..d0642c86a 100644
--- a/src/network/clientpackethandler.cpp
+++ b/src/network/clientpackethandler.cpp
@@ -142,7 +142,7 @@ void Client::handleCommand_AcceptSudoMode(NetworkPacket* pkt)
}
void Client::handleCommand_DenySudoMode(NetworkPacket* pkt)
{
- m_chat_queue.push(L"Password change denied. Password NOT changed.");
+ pushToChatQueue(L"Password change denied. Password NOT changed.");
// reset everything and be sad
deleteAuthData();
}
@@ -414,7 +414,7 @@ void Client::handleCommand_ChatMessage(NetworkPacket* pkt)
// If chat message not consummed by client lua API
if (!m_script->on_receiving_message(wide_to_utf8(message))) {
- m_chat_queue.push(message);
+ pushToChatQueue(message);
}
}