Skip to content

Commit

Permalink
Fix players able to send messages without shout privilege
Browse files Browse the repository at this point in the history
  • Loading branch information
octacian committed Jun 28, 2019
1 parent 1bb26f1 commit 5b2a0d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions init.lua
Expand Up @@ -85,8 +85,9 @@ end

-- [function] Process
function chat3.send(name, msg, prefix, source)
if minetest.get_modpath("ranks") and source ~= "ranks" then
return
if not minetest.check_player_privs(name, "shout")
or minetest.get_modpath("ranks") and source ~= "ranks" then
return
end

local sender = minetest.get_player_by_name(name)
Expand Down

0 comments on commit 5b2a0d4

Please sign in to comment.