# HG changeset patch # User Kim Alvefur # Date 1357760444 -3600 # Node ID eef393a37e3895e4ca03569a8361c7a194fa52d3 # Parent 87f07dd0bbfbcbddc1580f5a43d4a73eb85bb348 prosodyctl: Pop arg items after use. Fixes #306 diff -r 87f07dd0bbfb -r eef393a37e38 prosodyctl --- a/prosodyctl Wed Jan 09 17:56:40 2013 +0100 +++ b/prosodyctl Wed Jan 09 20:40:44 2013 +0100 @@ -67,10 +67,10 @@ 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);