diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-10-02 01:08:58 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-10-02 01:08:58 +0100 |
commit | 6db3d039b3d8d55c9e03ebdc776cf1a23dd826c2 (patch) | |
tree | 2d39390e5a9289101ba6910992084f09647ccfeb /net | |
parent | f1cc4eb60fc94093602025044af230f10634efe4 (diff) | |
download | prosody-6db3d039b3d8d55c9e03ebdc776cf1a23dd826c2.tar.gz prosody-6db3d039b3d8d55c9e03ebdc776cf1a23dd826c2.zip |
SASL!
(but before you get too excited, no resource binding yet. And yes, there are still plenty of rough edges to the code...)
((eg. must move <stream:features> out of xmlhandlers.lua o_O ))
Diffstat (limited to 'net')
-rw-r--r-- | net/connhandlers.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/connhandlers.lua b/net/connhandlers.lua new file mode 100644 index 00000000..493f1946 --- /dev/null +++ b/net/connhandlers.lua @@ -0,0 +1,16 @@ + +local lxp = require "lxp" +local init_xmlhandlers = require "core.xmlhandlers" + +module "connhandlers" + + +function new(name, session) + if name == "xmpp-client" then + local parser = lxp.new(init_xmlhandlers(session), ":"); + local parse = parser.parse; + return { data = function (self, data) return parse(parser, data); end, parser = parser } + end +end + +return _M;
\ No newline at end of file |