aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-02-11 14:51:29 +0000
committerMatthew Wild <mwild1@gmail.com>2012-02-11 14:51:29 +0000
commitcad7f6fa09893392c807a270d255a58eeed99bb3 (patch)
tree98d3b83f44f5f7dad47e35619b81fa374558a477
parent5958b69a5d3817e9b2e0828c336454220473c228 (diff)
parentc256444e8b4181648a938c24270feaade73d9b5a (diff)
downloadprosody-cad7f6fa09893392c807a270d255a58eeed99bb3.tar.gz
prosody-cad7f6fa09893392c807a270d255a58eeed99bb3.zip
Merge with 0.9
-rw-r--r--core/hostmanager.lua1
-rw-r--r--util/prosodyctl.lua6
2 files changed, 4 insertions, 3 deletions
diff --git a/core/hostmanager.lua b/core/hostmanager.lua
index 0dd1d426..7edf8230 100644
--- a/core/hostmanager.lua
+++ b/core/hostmanager.lua
@@ -12,6 +12,7 @@ local events_new = require "util.events".new;
local disco_items = require "util.multitable".new();
local NULL = {};
+local jid_split = require "util.jid".split;
local uuid_gen = require "util.uuid".generate;
local log = require "util.logger".init("hostmanager");
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index 128eec2c..439de551 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -136,11 +136,11 @@ function adduser(params)
return false, "invalid-hostname";
end
- local host = prosody.hosts[host];
- if not host then
+ local host_session = prosody.hosts[host];
+ if not host_session then
return false, "no-such-host";
end
- local provider = host.users;
+ local provider = host_session.users;
if not(provider) or provider.name == "null" then
usermanager.initialize_host(host);
end