aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index 6e9eed4e..2da39cb2 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -121,11 +121,11 @@ function adduser(params)
return false, "invalid-hostname";
end
- local host = prosody.hosts[host];
- if not host then
+ local host_session = prosody.hosts[host];
+ if not host_session then
return false, "no-such-host";
end
- local provider = host.users;
+ local provider = host_session.users;
if not(provider) or provider.name == "null" then
usermanager.initialize_host(host);
end