net/connhandlers.lua

changeset 99
ba08b8a4eeef
parent 98
3a2d327c4856
child 118
76ac96c53ee5
--- a/net/connhandlers.lua	Wed Oct 22 17:27:40 2008 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-
-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

mercurial