aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-01-09 20:40:44 +0100
committerKim Alvefur <zash@zash.se>2013-01-09 20:40:44 +0100
commitc445bb3bd8907492a74c97872da15a8ac800b685 (patch)
tree0e7a46305599d6a240b48e71923b4a6a68acf092 /prosodyctl
parent2f165b6ef21f10226034123e509c12c7a813e939 (diff)
downloadprosody-c445bb3bd8907492a74c97872da15a8ac800b685.tar.gz
prosody-c445bb3bd8907492a74c97872da15a8ac800b685.zip
prosodyctl: Pop arg items after use. Fixes #306
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index 134624b2..25acbc6a 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -67,10 +67,10 @@ do
local filename;
if arg[1] == "--config" and arg[2] then
table.insert(filenames, arg[2]);
- table.remove(arg, 1); table.remove(arg, 1);
if CFG_CONFIGDIR then
table.insert(filenames, CFG_CONFIGDIR.."/"..arg[2]);
end
+ table.remove(arg, 1); table.remove(arg, 1);
else
for _, format in ipairs(config.parsers()) do
table.insert(filenames, (CFG_CONFIGDIR or ".").."/prosody.cfg."..format);