diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-10-08 23:41:29 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-10-08 23:41:29 +0100 |
commit | 07c6450563c61745f1849d24fc21a05f85586396 (patch) | |
tree | 959fcea799f2c1e12800220278623504f5db6c81 | |
parent | 956a8c6ff59053493681b2951cad9d7cdf0ade9a (diff) | |
download | prosody-07c6450563c61745f1849d24fc21a05f85586396.tar.gz prosody-07c6450563c61745f1849d24fc21a05f85586396.zip |
mod_dialback: Catch s2s-stream-features and add dialback feature
-rw-r--r-- | plugins/mod_dialback.lua | 5 |
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); |