Software /
code /
prosody
File
net/connhandlers.lua @ 49:1cd2a8db392d
New "import" module to help tidy up all the local declarations at the top of modules
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 04 Oct 2008 02:43:23 +0100 |
parent | 38:3fdfd6e0cb4e |
line wrap: on
line source
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;