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
commitcf9471cd1c1dd8bde6c3406c570d0ae13bcd1372 (patch)
treea200d5ba5cd3ffcb31dbbe532a70f9d0326c8e55 /util/prosodyctl.lua
parent4727cb1adaeac099ca2cbd3629271199f8c79da3 (diff)
downloadprosody-cf9471cd1c1dd8bde6c3406c570d0ae13bcd1372.tar.gz
prosody-cf9471cd1c1dd8bde6c3406c570d0ae13bcd1372.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