util/stanza.lua

changeset 1151
8096941b6734
parent 964
3296db2ad4a0
child 1415
957a81b72cb2
--- 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