util.stanza: Omit unused clone parameter from error_reply()

Fri, 15 May 2009 06:39:53 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Fri, 15 May 2009 06:39:53 +0500
changeset 1151
8096941b6734
parent 1150
d71a8f28f18b
child 1152
4d95e8078405

util.stanza: Omit unused clone parameter from error_reply()

util/stanza.lua file | annotate | diff | comparison | revisions
--- a/util/stanza.lua	Fri May 15 06:34:42 2009 +0500
+++ b/util/stanza.lua	Fri May 15 06:39:53 2009 +0500
@@ -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

mercurial