Comparison

core/s2smanager.lua @ 5105:50688a2856f7

s2smanager: missing return on session.send function.
author Marco Cirillo <maranda@lightwitch.org>
date Sun, 26 Aug 2012 22:54:10 +0000
parent 4994:d4e6a07a7c33
child 5306:10bc0e2aa55e
comparison
equal deleted inserted replaced
5103:5a1488369c35 5105:50688a2856f7
94 prosody.events.fire_event("s2sout-established", event_data); 94 prosody.events.fire_event("s2sout-established", event_data);
95 hosts[from].events.fire_event("s2sout-established", event_data); 95 hosts[from].events.fire_event("s2sout-established", event_data);
96 else 96 else
97 local host_session = hosts[to]; 97 local host_session = hosts[to];
98 session.send = function(stanza) 98 session.send = function(stanza)
99 host_session.events.fire_event("route/remote", { from_host = to, to_host = from, stanza = stanza }); 99 return host_session.events.fire_event("route/remote", { from_host = to, to_host = from, stanza = stanza });
100 end; 100 end;
101 101
102 prosody.events.fire_event("s2sin-established", event_data); 102 prosody.events.fire_event("s2sin-established", event_data);
103 hosts[to].events.fire_event("s2sin-established", event_data); 103 hosts[to].events.fire_event("s2sin-established", event_data);
104 end 104 end