This commit is contained in:
Anand S 2018-04-26 03:01:23 +00:00 committed by GitHub
commit c14df81638
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,10 +83,14 @@ function filter.mute(name, duration)
muted[name] = true
minetest.after(duration * 60, function()
privs = minetest.get_player_privs(name)
if privs.shout==true then
return
end
muted[name] = nil
minetest.chat_send_player(name, "Chat privilege reinstated. Please do not abuse chat.")
local privs = minetest.get_player_privs(name)
privs.shout = true
minetest.set_player_privs(name, privs)
end)