Software /
code /
prosody
Comparison
util/prosodyctl.lua @ 4501:eacc93e23f21
util.prosodyctl: Fix variable name clash introduced in 55ef5d83d00a (thanks chris)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 11 Feb 2012 14:49:51 +0000 |
parent | 4499:55ef5d83d00a |
child | 4503:6dc327809dfd |
comparison
equal
deleted
inserted
replaced
4499:55ef5d83d00a | 4501:eacc93e23f21 |
---|---|
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 host = prosody.hosts[host]; | 124 local host_session = prosody.hosts[host]; |
125 if not host then | 125 if not host_session then |
126 return false, "no-such-host"; | 126 return false, "no-such-host"; |
127 end | 127 end |
128 local provider = host.users; | 128 local provider = host_session.users; |
129 if not(provider) or provider.name == "null" then | 129 if not(provider) or provider.name == "null" then |
130 usermanager.initialize_host(host); | 130 usermanager.initialize_host(host); |
131 end | 131 end |
132 storagemanager.initialize_host(host); | 132 storagemanager.initialize_host(host); |
133 | 133 |