Thu, 01 Jul 2010 15:31:25 +0200
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);