diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-07 19:19:05 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-07 19:19:05 +0000 |
commit | c662c733741d93701b615505b883883b6c2a6e93 (patch) | |
tree | dbbc0a728c402b9fe9825baef265b5d94e7762ca /util | |
parent | 673d2cd2a3d49e5aa94589d8a9dbc9555a45f9b7 (diff) | |
download | prosody-c662c733741d93701b615505b883883b6c2a6e93.tar.gz prosody-c662c733741d93701b615505b883883b6c2a6e93.zip |
util.xmppstream: Expose ns_separator and ns_pattern
Diffstat (limited to 'util')
-rw-r--r-- | util/xmppstream.lua | 3 |
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 = {}; |