Fix add_owner validity check
This commit is contained in:
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user