From 73b95e514d74d875ad98f76f5dd9f97f63916f2b Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Sun, 5 Nov 2017 12:00:08 -0800 Subject: [PATCH] Omit not needed priv check. --- init.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/init.lua b/init.lua index 25a40c4..8e90504 100644 --- a/init.lua +++ b/init.lua @@ -45,8 +45,6 @@ minetest.register_on_chat_message(function(name, message) for _, w in ipairs(words) do if string.find(message, "%f[%a]" .. w .. "%f[%A]") then - local privs = minetest.get_player_privs(name) - privs.shout = nil minetest.set_player_privs(name, privs) minetest.chat_send_player(name, "Chat temporarily disabled due to language.")