# HG changeset patch # User Matthew Wild # Date 1292942653 0 # Node ID a4f8e226bc4af0bfec9db9436a842f80528db52c # Parent 65c666d180964b8557afa317307d60bd2a558c5f util.xmppstream: Allow stream_ns = "" for parsing streams with no xmlns diff -r 65c666d18096 -r a4f8e226bc4a util/xmppstream.lua --- a/util/xmppstream.lua Tue Dec 21 01:47:49 2010 +0000 +++ b/util/xmppstream.lua Tue Dec 21 14:44:13 2010 +0000 @@ -45,7 +45,10 @@ local cb_handlestanza = stream_callbacks.handlestanza; local stream_ns = stream_callbacks.stream_ns or xmlns_streams; - local stream_tag = stream_ns..ns_separator..(stream_callbacks.stream_tag or "stream"); + local stream_tag = stream_callbacks.stream_tag or "stream"; + if stream_ns ~= "" then + stream_tag = stream_ns..ns_separator..stream_tag; + end local stream_error_tag = stream_ns..ns_separator..(stream_callbacks.error_tag or "error"); local stream_default_ns = stream_callbacks.default_ns;