aboutsummaryrefslogtreecommitdiffstats
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
commit92c876088161f8f15c0b1f375df91baf267608dd (patch)
tree0e7a46305599d6a240b48e71923b4a6a68acf092
parent436f4c2ac3207eab6fb2c97ecfce829d2e6c5d30 (diff)
downloadprosody-92c876088161f8f15c0b1f375df91baf267608dd.tar.gz
prosody-92c876088161f8f15c0b1f375df91baf267608dd.zip
prosodyctl: Pop arg items after use. Fixes #306
-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);