util/stanza.lua

changeset 209
e9de0803676d
parent 181
d952eae776dc
child 242
f15afbcbc55c
child 246
0904fd197cbe
--- a/util/stanza.lua	Tue Nov 04 01:26:56 2008 +0000
+++ b/util/stanza.lua	Tue Nov 04 18:15:56 2008 +0000
@@ -167,7 +167,7 @@
 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)

mercurial