Diff

util/prosodyctl.lua @ 1130:442c87de8e2d

util.prosodyctl: Import CFG_SOURCEDIR from the global environment (thanks macaronyde!)
author Matthew Wild <mwild1@gmail.com>
date Wed, 06 May 2009 21:45:02 +0100
parent 1123:da7ff11a03ee
child 1515:9991329e6b67
line wrap: on
line diff
--- a/util/prosodyctl.lua	Tue May 05 18:08:33 2009 +0100
+++ b/util/prosodyctl.lua	Wed May 06 21:45:02 2009 +0100
@@ -9,6 +9,9 @@
 
 local io, os = io, os;
 local tostring, tonumber = tostring, tonumber;
+
+local CFG_SOURCEDIR = _G.CFG_SOURCEDIR;
+
 module "prosodyctl"
 
 function adduser(params)