Fix add_owner validity check

This commit is contained in:
ShadowNinja 2014-06-23 15:19:19 -04:00
parent 8ee86b2366
commit ee212466bf

@ -78,7 +78,7 @@ minetest.register_chatcommand("add_owner", {
local pid, ownerName, areaName
= param:match('^(%d+) ([^ ]+) (.+)$')
if not found then
if not pid then
minetest.chat_send_player(name, "Incorrect usage, see /help add_owner")
return
end