diff options
Diffstat (limited to 'plugins')
-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); |