From: Kim Alvefur Date: Wed, 9 Jan 2013 19:40:44 +0000 (+0100) Subject: prosodyctl: Pop arg items after use. Fixes #306 X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=80202376eb1cc964374e2a272a50976c497e53bd;p=prosody.git prosodyctl: Pop arg items after use. Fixes #306 --- 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);