From c662c733741d93701b615505b883883b6c2a6e93 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 7 Dec 2010 19:19:05 +0000 Subject: util.xmppstream: Expose ns_separator and ns_pattern --- util/xmppstream.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util') diff --git a/util/xmppstream.lua b/util/xmppstream.lua index 90580ff2..0a1bf7ac 100644 --- a/util/xmppstream.lua +++ b/util/xmppstream.lua @@ -31,6 +31,9 @@ local xmlns_streams = "http://etherx.jabber.org/streams"; 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 = {}; -- cgit v1.2.3