Comparison

core/s2smanager.lua @ 4566:afd09bfa0884

s2smanager: remove send_to_host.
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 24 Feb 2012 15:15:43 +0000
parent 4555:3dce04129693
child 4576:79c813c4ecc0
comparison
equal deleted inserted replaced
4565:5a2212d3468e 4566:afd09bfa0884
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