aboutsummaryrefslogtreecommitdiffstats
path: root/util/stanza.lua
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-05-15 17:33:04 +0200
committerTobias Markmann <tm@ayena.de>2009-05-15 17:33:04 +0200
commit672ffb89624c3af6badb7354a6bcd9c0d7624e48 (patch)
tree74f77ffb11e96241a74cbf9136a424b3fe493cf5 /util/stanza.lua
parentb35bf3760e750fa55ea3ad5d4e97c59ba2eda9a1 (diff)
parentd836e5c09de5c45af4c76cc8cc66458bc0c5deec (diff)
downloadprosody-672ffb89624c3af6badb7354a6bcd9c0d7624e48.tar.gz
prosody-672ffb89624c3af6badb7354a6bcd9c0d7624e48.zip
Merging SASL buggy client workaround with current tip.
Diffstat (limited to 'util/stanza.lua')
-rw-r--r--util/stanza.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/stanza.lua b/util/stanza.lua
index 7e40dfa4..526bb2f0 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -258,10 +258,9 @@ function reply(orig)
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