# HG changeset patch # User Matthew Wild # Date 1255041689 -3600 # Node ID 9c700500f4083d20279e9f721a36ebc93881583d # Parent a6ca0dcc7b8394a700cf25b2f366c5ad44ff1fb0 mod_dialback: Catch s2s-stream-features and add dialback feature diff -r a6ca0dcc7b83 -r 9c700500f408 plugins/mod_dialback.lua --- a/plugins/mod_dialback.lua Thu Oct 08 23:40:54 2009 +0100 +++ b/plugins/mod_dialback.lua Thu Oct 08 23:41:29 2009 +0100 @@ -120,3 +120,8 @@ 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);