Mercurial > prosody-hg
comparison util/prosodyctl.lua @ 4503:6dc327809dfd
Merge with 0.9
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 11 Feb 2012 14:51:29 +0000 |
| parents | bfa387f268e2 eacc93e23f21 |
| children | dcc8e789df36 |
comparison
equal
deleted
inserted
replaced
| 4500:bfa387f268e2 | 4503:6dc327809dfd |
|---|---|
| 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 host = prosody.hosts[host]; | 139 local host_session = prosody.hosts[host]; |
| 140 if not host then | 140 if not host_session then |
| 141 return false, "no-such-host"; | 141 return false, "no-such-host"; |
| 142 end | 142 end |
| 143 local provider = host.users; | 143 local provider = host_session.users; |
| 144 if not(provider) or provider.name == "null" then | 144 if not(provider) or provider.name == "null" then |
| 145 usermanager.initialize_host(host); | 145 usermanager.initialize_host(host); |
| 146 end | 146 end |
| 147 storagemanager.initialize_host(host); | 147 storagemanager.initialize_host(host); |
| 148 | 148 |
