# HG changeset patch # User Kim Alvefur # Date 1360451419 -3600 # Node ID e04f1066470447b360d92ebccd6e1a2e4de56ac2 # Parent 12b0e5cc72bf116e6e5577a07ba6771fe04ff3f8 plugins.smacks: Break less on sending of non-stanzas such as raw strings. diff -r 12b0e5cc72bf -r e04f10664704 plugins/smacks.lua --- a/plugins/smacks.lua Mon Feb 04 01:04:01 2013 +0100 +++ b/plugins/smacks.lua Sun Feb 10 00:10:19 2013 +0100 @@ -53,7 +53,7 @@ local old_send = stream.send; function stream.send(stream, stanza) stream:warn("SENDING"); - if not stanza.attr.xmlns then + if stanza.name and not stanza.attr.xmlns then outgoing_queue[#outgoing_queue+1] = stanza; local ret = old_send(stream, stanza); old_send(stream, verse.stanza("r", { xmlns = xmlns_sm }));