From c445bb3bd8907492a74c97872da15a8ac800b685 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 9 Jan 2013 20:40:44 +0100 Subject: prosodyctl: Pop arg items after use. Fixes #306 --- prosodyctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3