Diff

util/prosodyctl.lua @ 3307:3d7acda82eed

util.prosodyctl: Fixed host variables in user_exists.
author Tobias Tom <t.tom@succont.de>
date Thu, 01 Jul 2010 15:31:25 +0200
parent 3294:89dd67cc3689
child 3627:9e62937c9757
line wrap: on
line diff
--- a/util/prosodyctl.lua	Thu Jul 01 13:27:51 2010 +0100
+++ b/util/prosodyctl.lua	Thu Jul 01 15:31:25 2010 +0200
@@ -46,9 +46,9 @@
 end
 
 function user_exists(params)
-	local provider = prosody.hosts[host].users;
+	local provider = prosody.hosts[params.host].users;
 	if not(provider) or provider.name == "null" then
-		usermanager.initialize_host(host);
+		usermanager.initialize_host(params.host);
 	end
 	
 	return usermanager.user_exists(params.user, params.host);