Diff

core/xmlhandlers.lua @ 149:40e443eacbbd

Partial s2s commit
author Matthew Wild <mwild1@gmail.com>
date Fri, 24 Oct 2008 07:34:13 +0100
parent 99:ba08b8a4eeef
child 150:d09b8a1ab046
line wrap: on
line diff
--- a/core/xmlhandlers.lua	Thu Oct 23 18:43:00 2008 +0100
+++ b/core/xmlhandlers.lua	Fri Oct 24 07:34:13 2008 +0100
@@ -3,6 +3,10 @@
 
 local st = stanza;
 local tostring = tostring;
+local pairs = pairs;
+local ipairs = ipairs;
+local type = type;
+local print = print;
 local format = string.format;
 local m_random = math.random;
 local t_insert = table.insert;
@@ -15,6 +19,10 @@
 
 module "xmlhandlers"
 
+local ns_prefixes = {
+						["http://www.w3.org/XML/1998/namespace"] = "xml";
+				}
+
 function init_xmlhandlers(session, streamopened)
 		local ns_stack = { "" };
 		local curr_ns = "";