aboutsummaryrefslogtreecommitdiffstats
path: root/core/stanza_router.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-17 13:33:23 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-17 13:33:23 +0100
commitb33e93f19be03c056c533e651385b67000e804cc (patch)
tree049781031cd2ecfce80c37fa4fde81c623cc7f29 /core/stanza_router.lua
parente380b86c9712a56ae613febb5cfdf7ec124f14d3 (diff)
downloadprosody-b33e93f19be03c056c533e651385b67000e804cc.tar.gz
prosody-b33e93f19be03c056c533e651385b67000e804cc.zip
stanza_router: Localize hosts, full_sessions and bare_sessions, and take from the prosody object instead of _G
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r--core/stanza_router.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index e8ade0e1..ef4f3695 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -8,7 +8,7 @@
local log = require "util.logger".init("stanzarouter")
-local hosts = _G.hosts;
+local hosts = _G.prosody.hosts;
local tostring = tostring;
local st = require "util.stanza";
local send_s2s = require "core.s2smanager".send_to_host;
@@ -17,6 +17,9 @@ local component_handle_stanza = require "core.componentmanager".handle_stanza;
local jid_split = require "util.jid".split;
local jid_prepped_split = require "util.jid".prepped_split;
+local full_sessions = _G.prosody.full_sessions;
+local bare_sessions = _G.prosody.bare_sessions;
+
function core_process_stanza(origin, stanza)
(origin.log or log)("debug", "Received[%s]: %s", origin.type, stanza:top_tag())