summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chatcommands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/chatcommands.lua b/chatcommands.lua
index 7773e60..ecf521a 100644
--- a/chatcommands.lua
+++ b/chatcommands.lua
@@ -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