diff --git a/init.lua b/init.lua index 620e31f..2a43689 100644 --- a/init.lua +++ b/init.lua @@ -177,7 +177,9 @@ end) -- Don't send messages from MT to telegram if we don't know where to if chat_id then minetest.register_on_chat_message(function(name, message) + if minetest.check_player_privs(name, {shout=true}) then telegram.send_message(chat_id, "<" .. name .. "> " .. message) + end return false end)