Comparison

plugins/mod_dialback.lua @ 3534:c68590b13a6d

mod_dialback: Fixed indentation.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 16 Oct 2010 07:08:19 +0500
parent 3533:0385b9f29049
child 3651:337391d34b70
child 4227:6b83ef6ec845
comparison
equal deleted inserted replaced
3533:0385b9f29049 3534:c68590b13a6d
131 return true; 131 return true;
132 end 132 end
133 end); 133 end);
134 134
135 module:hook_stanza(xmlns_stream, "features", function (origin, stanza) 135 module:hook_stanza(xmlns_stream, "features", function (origin, stanza)
136 s2s_initiate_dialback(origin); 136 s2s_initiate_dialback(origin);
137 return true; 137 return true;
138 end, 100); 138 end, 100);
139 139
140 -- Offer dialback to incoming hosts 140 -- Offer dialback to incoming hosts
141 module:hook("s2s-stream-features", function (data) 141 module:hook("s2s-stream-features", function (data)
142 data.features:tag("dialback", { xmlns='urn:xmpp:features:dialback' }):tag("optional"):up():up(); 142 data.features:tag("dialback", { xmlns='urn:xmpp:features:dialback' }):tag("optional"):up():up();
143 end); 143 end);