Diff

mod_carbons/mod_carbons.lua @ 606:a9249614b0fe

mod_carbons: Use session.send instead of passing carbon through all the routing
author Kim Alvefur <zash@zash.se>
date Sun, 12 Feb 2012 16:35:54 +0100
parent 605:5175f6d33470
child 617:3ca933c9d8ff
line wrap: on
line diff
--- a/mod_carbons/mod_carbons.lua	Thu Feb 09 13:06:14 2012 +0100
+++ b/mod_carbons/mod_carbons.lua	Sun Feb 12 16:35:54 2012 +0100
@@ -103,7 +103,7 @@
 						:tag("forwarded", { xmlns = xmlns_forward })
 							:add_child(msg);
 					module:log("debug", "Sending carbon");
-					core_post_stanza(origin, fwd);
+					session.send(fwd);
 				end
 			end
 		end