Comparison

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
comparison
equal deleted inserted replaced
1936:a6ca0dcc7b83 1937:9c700500f408
118 118
119 module:hook_stanza(xmlns_stream, "features", function (origin, stanza) 119 module:hook_stanza(xmlns_stream, "features", function (origin, stanza)
120 s2s_initiate_dialback(origin); 120 s2s_initiate_dialback(origin);
121 return true; 121 return true;
122 end, 100); 122 end, 100);
123
124 -- Offer dialback to incoming hosts
125 module:hook("s2s-stream-features", function (data)
126 data.features:tag("dialback", { xmlns='urn:xmpp:features:dialback' }):tag("optional"):up():up();
127 end);