aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_dialback.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-03-03 01:35:39 +0100
committerKim Alvefur <zash@zash.se>2012-03-03 01:35:39 +0100
commit71528cdc3726be326d6a0afb76f490b7d3c4fcc6 (patch)
tree7cb9f1430765b87af8e34951d82f326bb892290e /plugins/mod_dialback.lua
parentf886be3d2c699f58a84b37c2ec51cdd14ebf6fe7 (diff)
downloadprosody-71528cdc3726be326d6a0afb76f490b7d3c4fcc6.tar.gz
prosody-71528cdc3726be326d6a0afb76f490b7d3c4fcc6.zip
mod_s2s, mod_dialback: Event on pre-XMPP streams, so we can try dialback.
Diffstat (limited to 'plugins/mod_dialback.lua')
-rw-r--r--plugins/mod_dialback.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua
index eccfd3d6..5cb59fef 100644
--- a/plugins/mod_dialback.lua
+++ b/plugins/mod_dialback.lua
@@ -160,6 +160,11 @@ module:hook_stanza(xmlns_stream, "features", function (origin, stanza)
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();