Software /
code /
prosody
Comparison
core/s2smanager.lua @ 2613:afa20941e098
s2smanager, mod_compression, mod_tls: Changed event.session to event.origin for s2s-stream-features event for consistency.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 12 Feb 2010 04:30:17 +0500 |
parent | 2545:99700e601d16 |
child | 2621:4d0f9f50fdd8 |
comparison
equal
deleted
inserted
replaced
2612:475552b04151 | 2613:afa20941e098 |
---|---|
387 ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host, to=session.from_host, version=(session.version > 0 and "1.0" or nil) }):top_tag()); | 387 ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host, to=session.from_host, version=(session.version > 0 and "1.0" or nil) }):top_tag()); |
388 if session.version >= 1.0 then | 388 if session.version >= 1.0 then |
389 local features = st.stanza("stream:features"); | 389 local features = st.stanza("stream:features"); |
390 | 390 |
391 if session.to_host then | 391 if session.to_host then |
392 hosts[session.to_host].events.fire_event("s2s-stream-features", { session = session, features = features }); | 392 hosts[session.to_host].events.fire_event("s2s-stream-features", { origin = session, features = features }); |
393 else | 393 else |
394 (session.log or log)("warn", "No 'to' on stream header from %s means we can't offer any features", session.from_host or "unknown host"); | 394 (session.log or log)("warn", "No 'to' on stream header from %s means we can't offer any features", session.from_host or "unknown host"); |
395 end | 395 end |
396 | 396 |
397 log("debug", "Sending stream features: %s", tostring(features)); | 397 log("debug", "Sending stream features: %s", tostring(features)); |