aboutsummaryrefslogtreecommitdiffstats
path: root/core/xmlhandlers.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-10-22 17:36:21 +0100
committerMatthew Wild <mwild1@gmail.com>2008-10-22 17:36:21 +0100
commitee7b432ab1d450a42fae24b37c79b7fbda7f4e6b (patch)
treef5c0a969dcc3825bb99c3e1c38597056be201152 /core/xmlhandlers.lua
parentd510d54b2809b31bcbbc1bcbbe461fc7b5f91a41 (diff)
downloadprosody-ee7b432ab1d450a42fae24b37c79b7fbda7f4e6b.tar.gz
prosody-ee7b432ab1d450a42fae24b37c79b7fbda7f4e6b.zip
Abstract connections with "connection listeners"
- Added connlistener for xmppclient - SASL/TLS now use a new session:reset_stream() method - main.lua on its way to being a bit neater
Diffstat (limited to 'core/xmlhandlers.lua')
-rw-r--r--core/xmlhandlers.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/xmlhandlers.lua b/core/xmlhandlers.lua
index ebc8f91d..b1af299f 100644
--- a/core/xmlhandlers.lua
+++ b/core/xmlhandlers.lua
@@ -1,5 +1,4 @@
-local sessionmanager_streamopened = require "core.sessionmanager".streamopened;
require "util.stanza"
local st = stanza;
@@ -16,7 +15,7 @@ local error = error;
module "xmlhandlers"
-function init_xmlhandlers(session)
+function init_xmlhandlers(session, streamopened)
local ns_stack = { "" };
local curr_ns = "";
local curr_tag;
@@ -38,7 +37,7 @@ function init_xmlhandlers(session)
if not stanza then
if session.notopen then
if name == "stream" then
- sessionmanager_streamopened(session, attr);
+ streamopened(session, attr);
return;
end
error("Client failed to open stream successfully");