Software /
code /
prosody
Comparison
plugins/s2s/mod_s2s.lua @ 4584:9a5de6509aa8
mod_s2s, mod_dialback: Event on pre-XMPP streams, so we can try dialback.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 03 Mar 2012 01:35:39 +0100 |
parent | 4581:d2eb5962d235 |
child | 4586:4d63852910ff |
comparison
equal
deleted
inserted
replaced
4583:6f2789939d35 | 4584:9a5de6509aa8 |
---|---|
231 | 231 |
232 -- If server is pre-1.0, don't wait for features, just do dialback | 232 -- If server is pre-1.0, don't wait for features, just do dialback |
233 if session.version < 1.0 then | 233 if session.version < 1.0 then |
234 if not session.dialback_verifying then | 234 if not session.dialback_verifying then |
235 log("debug", "Initiating dialback..."); | 235 log("debug", "Initiating dialback..."); |
236 initiate_dialback(session); | 236 hosts[session.from_host].events.fire_event("s2s-no-stream-features", { origin = session }); |
237 else | 237 else |
238 s2s_mark_connected(session); | 238 s2s_mark_connected(session); |
239 end | 239 end |
240 end | 240 end |
241 end | 241 end |