mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
* squashed: [Client-sided scripting] Don't register functions that don't work. (#5091)
This commit is contained in:
parent
2efae3ffd7
commit
cb3a61f8db
10 changed files with 66 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue