Fix rename_area's argument validity check

This commit is contained in:
ShadowNinja 2014-06-18 19:47:14 -04:00
parent bfb260d181
commit 8ee86b2366

@ -120,7 +120,7 @@ minetest.register_chatcommand("rename_area", {
description = "Rename a area that you own", description = "Rename a area that you own",
func = function(name, param) func = function(name, param)
local id, newName = param:match("^(%d+)%s(.+)$") local id, newName = param:match("^(%d+)%s(.+)$")
if not found then if not id then
return false, "Invalid usage, see /help rename_area." return false, "Invalid usage, see /help rename_area."
end end