diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-11-04 17:21:27 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-11-04 17:21:27 +0500 |
commit | 97853af1a890067177eea401614b0cc0de1486d7 (patch) | |
tree | b72aa05034a6054e76cb540a7b0a4acca24f7907 /util | |
parent | e955346284ba0a2777398b049bb7cac770f9fe63 (diff) | |
download | prosody-97853af1a890067177eea401614b0cc0de1486d7.tar.gz prosody-97853af1a890067177eea401614b0cc0de1486d7.zip |
Foxed: Copy stanza type in reply for presence and message stanzas
Diffstat (limited to 'util')
-rw-r--r-- | util/stanza.lua | 2 |
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) |