Software / code / prosody
Comparison
util/prosodyctl.lua @ 7262:751a4832adb4
util.prosodyctl: Remove unused variable [luacheck]
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 10 Mar 2016 17:53:36 +0000 |
| parent | 7259:d8300985f2bb |
| child | 7457:5e18416881bb |
comparison
equal
deleted
inserted
replaced
| 7261:925f848c706d | 7262:751a4832adb4 |
|---|---|
| 147 end | 147 end |
| 148 return true; | 148 return true; |
| 149 end | 149 end |
| 150 | 150 |
| 151 local function user_exists(params) | 151 local function user_exists(params) |
| 152 local user, host, password = nodeprep(params.user), nameprep(params.host), params.password; | 152 local user, host = nodeprep(params.user), nameprep(params.host); |
| 153 | 153 |
| 154 storagemanager.initialize_host(host); | 154 storagemanager.initialize_host(host); |
| 155 local provider = prosody.hosts[host].users; | 155 local provider = prosody.hosts[host].users; |
| 156 if not(provider) or provider.name == "null" then | 156 if not(provider) or provider.name == "null" then |
| 157 usermanager.initialize_host(host); | 157 usermanager.initialize_host(host); |