summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-06-23 15:19:19 -0400
committerShadowNinja <shadowninja@minetest.net>2014-06-23 15:19:19 -0400
commitee212466bfb6f19bc30a1c9f0b591f733ee30450 (patch)
tree7708ff4446d7640228200d5ac5667df3fd461eb8
parent8ee86b2366194369fd9d71df9182da4d6a109c93 (diff)
Fix add_owner validity check
-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