aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-02-11 14:49:51 +0000
committerMatthew Wild <mwild1@gmail.com>2012-02-11 14:49:51 +0000
commit6448e03b74dbc86ba12870e4166a139a475196b0 (patch)
treea200d5ba5cd3ffcb31dbbe532a70f9d0326c8e55 /util/prosodyctl.lua
parentd75e3d56b5128e4489f635a412cb12bf02e9f18f (diff)
downloadprosody-6448e03b74dbc86ba12870e4166a139a475196b0.tar.gz
prosody-6448e03b74dbc86ba12870e4166a139a475196b0.zip
util.prosodyctl: Fix variable name clash introduced in 55ef5d83d00a (thanks chris)
Diffstat (limited to 'util/prosodyctl.lua')
-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