Software /
code /
verse
Changeset
320:e04f10664704
plugins.smacks: Break less on sending of non-stanzas such as raw strings.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 10 Feb 2013 00:10:19 +0100 |
parents | 319:12b0e5cc72bf |
children | 321:369d4638d775 |
files | plugins/smacks.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 }));