Changeset

4501:eacc93e23f21

util.prosodyctl: Fix variable name clash introduced in 55ef5d83d00a (thanks chris)
author Matthew Wild <mwild1@gmail.com>
date Sat, 11 Feb 2012 14:49:51 +0000
parents 4499:55ef5d83d00a
children 4502:dd1eaecc11f9
files util/prosodyctl.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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