comparison 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
parents 5175f6d33470
children 3ca933c9d8ff
comparison
equal deleted inserted replaced
605:5175f6d33470 606:a9249614b0fe
101 } 101 }
102 :tag(c2s and "sent" or "received", { xmlns = xmlns_carbons }):up() 102 :tag(c2s and "sent" or "received", { xmlns = xmlns_carbons }):up()
103 :tag("forwarded", { xmlns = xmlns_forward }) 103 :tag("forwarded", { xmlns = xmlns_forward })
104 :add_child(msg); 104 :add_child(msg);
105 module:log("debug", "Sending carbon"); 105 module:log("debug", "Sending carbon");
106 core_post_stanza(origin, fwd); 106 session.send(fwd);
107 end 107 end
108 end 108 end
109 end 109 end
110 end 110 end
111 end 111 end