Changeset

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
parents 3306:59d56fd49e38
children 3308:f5243ca9662f
files util/prosodyctl.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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);