comparison core/s2smanager.lua @ 4573:09255a10fdfa

Merge Zash with Florob and Maranda
author Matthew Wild <mwild1@gmail.com>
date Fri, 24 Feb 2012 16:23:46 +0000
parents afd09bfa0884
children 79c813c4ecc0
comparison
equal deleted inserted replaced
4564:a11b4cbac3c5 4573:09255a10fdfa
112 local sendq, send = session.sendq, session.sends2s; 112 local sendq, send = session.sendq, session.sends2s;
113 113
114 local from, to = session.from_host, session.to_host; 114 local from, to = session.from_host, session.to_host;
115 115
116 session.log("info", session.direction.." s2s connection "..from.."->"..to.." complete"); 116 session.log("info", session.direction.." s2s connection "..from.."->"..to.." complete");
117 117
118 local send_to_host = send_to_host;
119 function session.send(data) return send_to_host(to, from, data); end
120
121 local event_data = { session = session }; 118 local event_data = { session = session };
122 if session.type == "s2sout" then 119 if session.type == "s2sout" then
123 prosody.events.fire_event("s2sout-established", event_data); 120 prosody.events.fire_event("s2sout-established", event_data);
124 hosts[session.from_host].events.fire_event("s2sout-established", event_data); 121 hosts[session.from_host].events.fire_event("s2sout-established", event_data);
125 else 122 else