From 3ec682c7736e88c60a61a2783d8a2a926a24f81b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 7 Dec 2015 23:31:55 +0000 Subject: [PATCH] Chatplus: fix name pattern matching --- mods/chatplus/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/chatplus/init.lua b/mods/chatplus/init.lua index 15df456..fadbfa5 100644 --- a/mods/chatplus/init.lua +++ b/mods/chatplus/init.lua @@ -325,7 +325,7 @@ minetest.register_chatcommand("mail", { description = "mail: add a message to a player's inbox", func = function(name, param) chatplus.poke(name) - local to, msg = string.match(param, "([%a%d_]+) (.+)") + local to, msg = string.match(param, "^([%a%d_-]+) (.+)") if not to or not msg then minetest.chat_send_player(name,"mail: ",false)