util.prosodyctl: Fix variable name clash introduced in 55ef5d83d00a (thanks chris)
authorMatthew Wild <mwild1@gmail.com>
Sat, 11 Feb 2012 14:49:51 +0000
changeset 4501 eacc93e23f21
parent 4499 55ef5d83d00a
child 4502 dd1eaecc11f9
util.prosodyctl: Fix variable name clash introduced in 55ef5d83d00a (thanks chris)
util/prosodyctl.lua
--- a/util/prosodyctl.lua	Wed Feb 08 15:33:36 2012 +0100
+++ b/util/prosodyctl.lua	Sat Feb 11 14:49:51 2012 +0000
@@ -121,11 +121,11 @@
 		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