Software /
code /
prosody
Diff
util/stanza.lua @ 1162:bd1f0e6d50a7
Merging SASL buggy client workaround with current tip.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Fri, 15 May 2009 17:33:04 +0200 |
parent | 1151:8096941b6734 |
child | 1415:957a81b72cb2 |
line wrap: on
line diff
--- a/util/stanza.lua Fri May 15 17:28:39 2009 +0200 +++ b/util/stanza.lua Fri May 15 17:33:04 2009 +0200 @@ -258,10 +258,9 @@ return stanza(orig.name, orig.attr and { to = orig.attr.from, from = orig.attr.to, id = orig.attr.id, type = ((orig.name == "iq" and "result") or orig.attr.type) }); end -function error_reply(orig, type, condition, message, clone) +function error_reply(orig, type, condition, message) local t = reply(orig); t.attr.type = "error"; - -- TODO use clone t:tag("error", {type = type}) :tag(condition, {xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas"}):up(); if (message) then t:tag("text"):text(message):up(); end