aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-08 23:41:29 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-08 23:41:29 +0100
commit07c6450563c61745f1849d24fc21a05f85586396 (patch)
tree959fcea799f2c1e12800220278623504f5db6c81 /plugins
parent956a8c6ff59053493681b2951cad9d7cdf0ade9a (diff)
downloadprosody-07c6450563c61745f1849d24fc21a05f85586396.tar.gz
prosody-07c6450563c61745f1849d24fc21a05f85586396.zip
mod_dialback: Catch s2s-stream-features and add dialback feature
Diffstat (limited to 'plugins')
-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 30313188..469044cd 100644
--- a/plugins/mod_dialback.lua
+++ b/plugins/mod_dialback.lua
@@ -120,3 +120,8 @@ module:hook_stanza(xmlns_stream, "features", function (origin, stanza)
s2s_initiate_dialback(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' }):tag("optional"):up():up();
+ end);