From 97853af1a890067177eea401614b0cc0de1486d7 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Tue, 4 Nov 2008 17:21:27 +0500 Subject: Foxed: Copy stanza type in reply for presence and message stanzas --- util/stanza.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/stanza.lua b/util/stanza.lua index 3fa8ba66..52f372cc 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -167,7 +167,7 @@ function iq(attr) 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) -- cgit v1.2.3