Software /
code /
prosody
Comparison
util/prosodyctl.lua @ 3307:3d7acda82eed
util.prosodyctl: Fixed host variables in user_exists.
author | Tobias Tom <t.tom@succont.de> |
---|---|
date | Thu, 01 Jul 2010 15:31:25 +0200 |
parent | 3294:89dd67cc3689 |
child | 3627:9e62937c9757 |
comparison
equal
deleted
inserted
replaced
3306:59d56fd49e38 | 3307:3d7acda82eed |
---|---|
44 end | 44 end |
45 return true; | 45 return true; |
46 end | 46 end |
47 | 47 |
48 function user_exists(params) | 48 function user_exists(params) |
49 local provider = prosody.hosts[host].users; | 49 local provider = prosody.hosts[params.host].users; |
50 if not(provider) or provider.name == "null" then | 50 if not(provider) or provider.name == "null" then |
51 usermanager.initialize_host(host); | 51 usermanager.initialize_host(params.host); |
52 end | 52 end |
53 | 53 |
54 return usermanager.user_exists(params.user, params.host); | 54 return usermanager.user_exists(params.user, params.host); |
55 end | 55 end |
56 | 56 |