aboutsummaryrefslogtreecommitdiffstats
path: root/util/stanza.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-05-15 06:39:53 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-05-15 06:39:53 +0500
commitfa8aeaf04f2737928eab4f0df383e292435e2159 (patch)
treed2f1e64a370bc8211e528ab3b9b3043e35025aa8 /util/stanza.lua
parent6882c5dae0fb22e103df404bdff4b2926a6c968e (diff)
downloadprosody-fa8aeaf04f2737928eab4f0df383e292435e2159.tar.gz
prosody-fa8aeaf04f2737928eab4f0df383e292435e2159.zip
util.stanza: Omit unused clone parameter from error_reply()
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