diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-06-18 19:47:14 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-06-18 19:47:14 -0400 |
commit | 8ee86b2366194369fd9d71df9182da4d6a109c93 (patch) | |
tree | 503e4f49af7a29f4b621ab984572c86f8eadf43e | |
parent | bfb260d181f464bdb78ab7382c3df24ce1db55ba (diff) |
Fix rename_area's argument validity check
-rw-r--r-- | chatcommands.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chatcommands.lua b/chatcommands.lua index 31e68c6..7773e60 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -120,7 +120,7 @@ minetest.register_chatcommand("rename_area", { description = "Rename a area that you own", func = function(name, param) local id, newName = param:match("^(%d+)%s(.+)$") - if not found then + if not id then return false, "Invalid usage, see /help rename_area." end |