Diff

plugins/mod_dialback.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 4579:5650c290fe8e
child 4586:4d63852910ff
line wrap: on
line diff
--- a/plugins/mod_dialback.lua	Sat Mar 03 00:54:19 2012 +0100
+++ b/plugins/mod_dialback.lua	Sat Mar 03 01:35:39 2012 +0100
@@ -160,6 +160,11 @@
 	end
 end, 100);
 
+module:hook("s2s-no-stream-features", function (event)
+	initiate_dialback(event.origin);
+	return true;
+end, 100);
+
 -- Offer dialback to incoming hosts
 module:hook("s2s-stream-features", function (data)
 	data.features:tag("dialback", { xmlns='urn:xmpp:features:dialback' }):up();