Chatplus: fix name pattern matching
This commit is contained in:
parent
c1bafebbdd
commit
3ec682c773
1 changed files with 1 additions and 1 deletions
|
@ -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: <playername> <msg>",false)
|
||||
|
|
Loading…
Reference in a new issue