From 86393ccc735d74de3f1923bd5d189f91f5d039be Mon Sep 17 00:00:00 2001 From: bad Date: Mon, 13 Jan 2025 19:48:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B8=D0=B2=D0=B8=D0=BB=D0=B5=D0=B3=D0=B8=D0=B8?= =?UTF-8?q?=20shout=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=20=D0=BE=D1=82=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=BE=D0=B9=20=D1=81=D0=BE=D0=BE=D0=B1?= =?UTF-8?q?=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D1=82=D0=B5=D0=BB?= =?UTF-8?q?=D0=B5=D0=B3=D1=80=D0=B0=D0=BC=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 2 ++ 1 file changed, 2 insertions(+) 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)