Software /
code /
prosody
Comparison
util/prosodyctl.lua @ 4499:55ef5d83d00a
util.prosodyctl: In the register command, check that the virtual exists before proceeding.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 08 Feb 2012 15:33:36 +0100 |
parent | 4335:3a2a01432b5c |
child | 4500:bfa387f268e2 |
child | 4501:eacc93e23f21 |
comparison
equal
deleted
inserted
replaced
4498:9454d237cf7c | 4499:55ef5d83d00a |
---|---|
119 return false, "invalid-username"; | 119 return false, "invalid-username"; |
120 elseif not host then | 120 elseif not host then |
121 return false, "invalid-hostname"; | 121 return false, "invalid-hostname"; |
122 end | 122 end |
123 | 123 |
124 local provider = prosody.hosts[host].users; | 124 local host = prosody.hosts[host]; |
125 if not host then | |
126 return false, "no-such-host"; | |
127 end | |
128 local provider = host.users; | |
125 if not(provider) or provider.name == "null" then | 129 if not(provider) or provider.name == "null" then |
126 usermanager.initialize_host(host); | 130 usermanager.initialize_host(host); |
127 end | 131 end |
128 storagemanager.initialize_host(host); | 132 storagemanager.initialize_host(host); |
129 | 133 |