Foxed: Copy stanza type in reply for presence and message stanzas

Tue, 04 Nov 2008 17:21:27 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Tue, 04 Nov 2008 17:21:27 +0500
changeset 211
22e17cfab36c
parent 208
23245a92b275
child 212
9d6da9ed9063

Foxed: Copy stanza type in reply for presence and message stanzas

util/stanza.lua file | annotate | diff | comparison | revisions
--- a/util/stanza.lua	Tue Nov 04 01:26:56 2008 +0000
+++ b/util/stanza.lua	Tue Nov 04 17:21:27 2008 +0500
@@ -167,7 +167,7 @@
 end
 
 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 nil) });
+	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)

mercurial