aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-11-04 17:21:27 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-11-04 17:21:27 +0500
commit97853af1a890067177eea401614b0cc0de1486d7 (patch)
treeb72aa05034a6054e76cb540a7b0a4acca24f7907
parente955346284ba0a2777398b049bb7cac770f9fe63 (diff)
downloadprosody-97853af1a890067177eea401614b0cc0de1486d7.tar.gz
prosody-97853af1a890067177eea401614b0cc0de1486d7.zip
Foxed: Copy stanza type in reply for presence and message stanzas
-rw-r--r--util/stanza.lua2
1 files changed, 1 insertions, 1 deletions
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)