mirror of
https://github.com/minetest-mods/areas.git
synced 2024-12-25 02:00:40 +01:00
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
|
local pid, ownerName, areaName
|
||||||
= param:match('^(%d+) ([^ ]+) (.+)$')
|
= param:match('^(%d+) ([^ ]+) (.+)$')
|
||||||
|
|
||||||
if not found then
|
if not pid then
|
||||||
minetest.chat_send_player(name, "Incorrect usage, see /help add_owner")
|
minetest.chat_send_player(name, "Incorrect usage, see /help add_owner")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user