From 643f53f3e0b2b2132ff22ce2e22c54a28834f2c4 Mon Sep 17 00:00:00 2001
From: Matthew Wild <mwild1@gmail.com>
Date: Tue, 4 Nov 2008 18:15:56 +0000
Subject: Part one of internal component support

---
 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