util.prosodyctl: Fixed host variables in user_exists.

Thu, 01 Jul 2010 15:31:25 +0200

author
Tobias Tom <t.tom@succont.de>
date
Thu, 01 Jul 2010 15:31:25 +0200
changeset 3307
3d7acda82eed
parent 3306
59d56fd49e38
child 3308
f5243ca9662f

util.prosodyctl: Fixed host variables in user_exists.

util/prosodyctl.lua file | annotate | diff | comparison | revisions
--- 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);

mercurial