Diff

util/xmppstream.lua @ 3708:2dcb86c7cee7

util.xmppstream: Expose ns_separator and ns_pattern
author Matthew Wild <mwild1@gmail.com>
date Tue, 07 Dec 2010 19:19:05 +0000
parent 3696:a96f275c42b5
child 3927:1b57e83266f0
line wrap: on
line diff
--- a/util/xmppstream.lua	Tue Dec 07 18:38:22 2010 +0000
+++ b/util/xmppstream.lua	Tue Dec 07 19:19:05 2010 +0000
@@ -31,6 +31,9 @@
 local ns_separator = "\1";
 local ns_pattern = "^([^"..ns_separator.."]*)"..ns_separator.."?(.*)$";
 
+_M.ns_separator = ns_separator;
+_M.ns_pattern = ns_pattern;
+
 function new_sax_handlers(session, stream_callbacks)
 	local xml_handlers = {};