Diff

util/prosodyctl.lua @ 4503:6dc327809dfd

Merge with 0.9
author Matthew Wild <mwild1@gmail.com>
date Sat, 11 Feb 2012 14:51:29 +0000
parent 4500:bfa387f268e2
parent 4501:eacc93e23f21
child 5023:dcc8e789df36
line wrap: on
line diff
--- a/util/prosodyctl.lua	Wed Feb 08 16:20:07 2012 +0100
+++ b/util/prosodyctl.lua	Sat Feb 11 14:51:29 2012 +0000
@@ -136,11 +136,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