net/connhandlers.lua

Thu, 09 Oct 2008 20:32:59 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 09 Oct 2008 20:32:59 +0100
changeset 93
2d60e7871ddd
parent 38
3fdfd6e0cb4e
permissions
-rw-r--r--

Fix MUC address


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;

mercurial