Software /
code /
prosody
Diff
core/xmlhandlers.lua @ 99:ba08b8a4eeef
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
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 22 Oct 2008 17:36:21 +0100 |
parent | 53:14ea0fe6ca86 |
child | 145:fbb3a4ff9cf1 |
child | 149:40e443eacbbd |
line wrap: on
line diff
--- a/core/xmlhandlers.lua Wed Oct 22 17:27:40 2008 +0100 +++ b/core/xmlhandlers.lua Wed Oct 22 17:36:21 2008 +0100 @@ -1,5 +1,4 @@ -local sessionmanager_streamopened = require "core.sessionmanager".streamopened; require "util.stanza" local st = stanza; @@ -16,7 +15,7 @@ module "xmlhandlers" -function init_xmlhandlers(session) +function init_xmlhandlers(session, streamopened) local ns_stack = { "" }; local curr_ns = ""; local curr_tag; @@ -38,7 +37,7 @@ 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");