make mail usable by all with shout

This commit is contained in:
Elkien3 2018-10-28 11:52:54 -05:00
parent 3cc3e1647f
commit d52031b731

View File

@ -198,7 +198,7 @@ minetest.register_chatcommand("inbox", {
minetest.register_chatcommand("mail", {
params = "name msg",
privs = {kick = true},
privs = {shout = true},
description = "mail: add a message to a player's inbox",
func = function(name, param)
local to, msg = string.match(param, "^([%a%d_-]+) (.+)")