Software /
code /
prosody
Changeset
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 |
parents | 1936:a6ca0dcc7b83 |
children | 1938:82342e7f1b84 |
files | plugins/mod_dialback.lua |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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);