Software /
code /
prosody
Diff
plugins/mod_dialback.lua @ 1937:9c700500f408
mod_dialback: Catch s2s-stream-features and add dialback feature
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 08 Oct 2009 23:41:29 +0100 |
parent | 1876:6d33e0521667 |
child | 2923:b7049746bd29 |
line wrap: on
line diff
--- 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);