mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
[CSM] Add client-sided chat commands (#5092)
This commit is contained in:
parent
9978f5af82
commit
d7bc346981
9 changed files with 100 additions and 33 deletions
|
@ -1582,11 +1582,7 @@ void Client::typeChatMessage(const std::wstring &message)
|
|||
sendChatMessage(message);
|
||||
|
||||
// Show locally
|
||||
if (message[0] == L'/')
|
||||
{
|
||||
pushToChatQueue((std::wstring)L"issued command: " + message);
|
||||
}
|
||||
else
|
||||
if (message[0] != L'/')
|
||||
{
|
||||
// compatibility code
|
||||
if (m_proto_ver < 29) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue