changeset 1597:dc0cf2ba0e1a

mod_smacks: Stanzas don't have a ':' in their name
author Kim Alvefur <zash@zash.se>
date Mon, 26 Jan 2015 15:32:19 +0100
parents b362e6c00fd1
children 043d08448d87
files mod_smacks/mod_smacks.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Sun Jan 25 22:18:05 2015 +0100
+++ b/mod_smacks/mod_smacks.lua	Mon Jan 26 15:32:19 2015 +0100
@@ -58,7 +58,7 @@
 		end);
 
 local function outgoing_stanza_filter(stanza, session)
-	local is_stanza = stanza.attr and not stanza.attr.xmlns;
+	local is_stanza = stanza.attr and not stanza.attr.xmlns and not stanza.name:find":";
 	if is_stanza and not stanza._cached then -- Stanza in default stream namespace
 		local queue = session.outgoing_stanza_queue;
 		local cached_stanza = st.clone(stanza);