Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
1129:3ee9047334db | 1130:442c87de8e2d |
---|---|
7 | 7 |
8 local nodeprep, nameprep = stringprep.nodeprep, stringprep.nameprep; | 8 local nodeprep, nameprep = stringprep.nodeprep, stringprep.nameprep; |
9 | 9 |
10 local io, os = io, os; | 10 local io, os = io, os; |
11 local tostring, tonumber = tostring, tonumber; | 11 local tostring, tonumber = tostring, tonumber; |
12 | |
13 local CFG_SOURCEDIR = _G.CFG_SOURCEDIR; | |
14 | |
12 module "prosodyctl" | 15 module "prosodyctl" |
13 | 16 |
14 function adduser(params) | 17 function adduser(params) |
15 local user, host, password = nodeprep(params.user), nameprep(params.host), params.password; | 18 local user, host, password = nodeprep(params.user), nameprep(params.host), params.password; |
16 if not user then | 19 if not user then |