Add support for new ChatMessage API.

This commit is contained in:
luk3yx 2020-06-02 22:57:43 +12:00
parent 90336231c7
commit 1f44160087
1 changed files with 4 additions and 0 deletions

View File

@ -246,6 +246,10 @@ end
-- Detect messages and handle them
minetest.register_on_receiving_chat_message(function(message)
if type(message) == 'table' then
message = message.message
end
local chan, msg = message:match('^\001SSCSM_COM\001([^\001]*)\001(.*)$')
if not chan or not msg then return end