Software /
code /
prosody
Comparison
util/prosodyctl.lua @ 4500:bfa387f268e2
Merge with 0.9
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 08 Feb 2012 16:20:07 +0100 |
parent | 4485:abfd27b59fa8 |
parent | 4499:55ef5d83d00a |
child | 4503:6dc327809dfd |
comparison
equal
deleted
inserted
replaced
4496:11983a1e92c0 | 4500:bfa387f268e2 |
---|---|
134 return false, "invalid-username"; | 134 return false, "invalid-username"; |
135 elseif not host then | 135 elseif not host then |
136 return false, "invalid-hostname"; | 136 return false, "invalid-hostname"; |
137 end | 137 end |
138 | 138 |
139 local provider = prosody.hosts[host].users; | 139 local host = prosody.hosts[host]; |
140 if not host then | |
141 return false, "no-such-host"; | |
142 end | |
143 local provider = host.users; | |
140 if not(provider) or provider.name == "null" then | 144 if not(provider) or provider.name == "null" then |
141 usermanager.initialize_host(host); | 145 usermanager.initialize_host(host); |
142 end | 146 end |
143 storagemanager.initialize_host(host); | 147 storagemanager.initialize_host(host); |
144 | 148 |