# HG changeset patch # User Waqas Hussain # Date 1225801287 -18000 # Node ID 22e17cfab36ce9aa76e20cfcfdc0b8e9a4e06b36 # Parent 23245a92b275a450c065e0d6d36a00e1f0c14158 Foxed: Copy stanza type in reply for presence and message stanzas diff -r 23245a92b275 -r 22e17cfab36c util/stanza.lua --- 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)