summaryrefslogtreecommitdiff
path: root/chatcommands.lua
diff options
context:
space:
mode:
Diffstat (limited to 'chatcommands.lua')
-rw-r--r--chatcommands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/chatcommands.lua b/chatcommands.lua
index c201e19..58978f1 100644
--- a/chatcommands.lua
+++ b/chatcommands.lua
@@ -206,7 +206,7 @@ minetest.register_chatcommand("list_areas", {
"Showing your areas.")
end
for _, area in pairs(areas.areas) do
- if admin or area.owner == name then
+ if admin or areas:isAreaOwner(area.id, name) then
minetest.chat_send_player(name,
areas:toString(area))
end