aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl.lua
diff options
context:
space:
mode:
authorTobias Tom <t.tom@succont.de>2010-07-01 15:31:25 +0200
committerTobias Tom <t.tom@succont.de>2010-07-01 15:31:25 +0200
commite0f91c8cd59a5a056a7443f444fca2fb7907ee75 (patch)
tree3f769913b87846a374d127aad43f1fe11bb35831 /util/prosodyctl.lua
parent91779a57185adc6959cc043bf3a4f1a44699d71d (diff)
downloadprosody-e0f91c8cd59a5a056a7443f444fca2fb7907ee75.tar.gz
prosody-e0f91c8cd59a5a056a7443f444fca2fb7907ee75.zip
util.prosodyctl: Fixed host variables in user_exists.
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r--util/prosodyctl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index 1be67883..7f3ce20e 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -46,9 +46,9 @@ function adduser(params)
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);