diff options
author | Kim Alvefur <zash@zash.se> | 2013-01-09 20:40:44 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-01-09 20:40:44 +0100 |
commit | 92c876088161f8f15c0b1f375df91baf267608dd (patch) | |
tree | 0e7a46305599d6a240b48e71923b4a6a68acf092 | |
parent | 436f4c2ac3207eab6fb2c97ecfce829d2e6c5d30 (diff) | |
download | prosody-92c876088161f8f15c0b1f375df91baf267608dd.tar.gz prosody-92c876088161f8f15c0b1f375df91baf267608dd.zip |
prosodyctl: Pop arg items after use. Fixes #306
-rwxr-xr-x | prosodyctl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |