aboutsummaryrefslogtreecommitdiffstats
path: root/util/xmppstream.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-07 19:19:05 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-07 19:19:05 +0000
commit0c8d2cefc7097ddbe6fa43db08866a2de55ca1df (patch)
treed02a7a6c87fc8aef7a0e7e7b0263b67e1ac7e767 /util/xmppstream.lua
parent68ba7d6d4344d39c10976d84015ae06463d04be9 (diff)
downloadprosody-0c8d2cefc7097ddbe6fa43db08866a2de55ca1df.tar.gz
prosody-0c8d2cefc7097ddbe6fa43db08866a2de55ca1df.zip
util.xmppstream: Expose ns_separator and ns_pattern
Diffstat (limited to 'util/xmppstream.lua')
-rw-r--r--util/xmppstream.lua3
1 files changed, 3 insertions, 0 deletions
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 = {};