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 | c445bb3bd8907492a74c97872da15a8ac800b685 (patch) | |
tree | 0e7a46305599d6a240b48e71923b4a6a68acf092 | |
parent | 2f165b6ef21f10226034123e509c12c7a813e939 (diff) | |
download | prosody-c445bb3bd8907492a74c97872da15a8ac800b685.tar.gz prosody-c445bb3bd8907492a74c97872da15a8ac800b685.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); |