Omit not needed priv check.

This commit is contained in:
Auke Kok 2017-11-05 12:00:08 -08:00
parent 9d132c8e1b
commit 73b95e514d

View File

@ -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.")