Omit not needed priv check.
This commit is contained in:
parent
9d132c8e1b
commit
73b95e514d
2
init.lua
2
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.")
|
||||
|
Loading…
Reference in New Issue
Block a user