util.stanza: Omit unused clone parameter from error_reply()
authorWaqas Hussain <waqas20@gmail.com>
Fri, 15 May 2009 01:39:53 +0000 (06:39 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Fri, 15 May 2009 01:39:53 +0000 (06:39 +0500)
util/stanza.lua

index 7e40dfa43d1dadb14e4fa0e24ab88dd12d805f75..526bb2f0f5c45e892fbfd886e2e0ee2ff83301fe 100644 (file)
@@ -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