aboutsummaryrefslogtreecommitdiffstats
path: root/util/stanza.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-04 18:15:56 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-04 18:15:56 +0000
commit643f53f3e0b2b2132ff22ce2e22c54a28834f2c4 (patch)
tree200abb958a00255a4a8cab3694d9a044f2b39edd /util/stanza.lua
parente955346284ba0a2777398b049bb7cac770f9fe63 (diff)
downloadprosody-643f53f3e0b2b2132ff22ce2e22c54a28834f2c4.tar.gz
prosody-643f53f3e0b2b2132ff22ce2e22c54a28834f2c4.zip
Part one of internal component support
Diffstat (limited to 'util/stanza.lua')
-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)