util/prosodyctl.lua

changeset 1130
442c87de8e2d
parent 1123
da7ff11a03ee
child 1515
9991329e6b67
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

mercurial