diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-06-23 15:19:19 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-06-23 15:19:19 -0400 |
commit | ee212466bfb6f19bc30a1c9f0b591f733ee30450 (patch) | |
tree | 7708ff4446d7640228200d5ac5667df3fd461eb8 | |
parent | 8ee86b2366194369fd9d71df9182da4d6a109c93 (diff) |
Fix add_owner validity check
-rw-r--r-- | chatcommands.lua | 2 |
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 |