Comparison

plugins/mod_dialback.lua @ 4587:93a84314c296

mod_dialback, mod_s2s: Log initiation of dialback in mod_dialback
author Kim Alvefur <zash@zash.se>
date Sat, 03 Mar 2012 16:45:34 +0100
parent 4586:4d63852910ff
child 4761:178f252c31b0
comparison
equal deleted inserted replaced
4586:4d63852910ff 4587:93a84314c296
153 end 153 end
154 end, 100); 154 end, 100);
155 155
156 module:hook_stanza(xmlns_stream, "features", function (origin, stanza) 156 module:hook_stanza(xmlns_stream, "features", function (origin, stanza)
157 if not origin.external_auth or origin.external_auth == "failed" then 157 if not origin.external_auth or origin.external_auth == "failed" then
158 module:log("debug", "Initiating dialback...");
158 initiate_dialback(origin); 159 initiate_dialback(origin);
159 return true; 160 return true;
160 end 161 end
161 end, 100); 162 end, 100);
162 163
163 module:hook("s2s-authenticate-legacy", function (event) 164 module:hook("s2s-authenticate-legacy", function (event)
165 module:log("debug", "Initiating dialback...");
164 initiate_dialback(event.origin); 166 initiate_dialback(event.origin);
165 return true; 167 return true;
166 end, 100); 168 end, 100);
167 169
168 -- Offer dialback to incoming hosts 170 -- Offer dialback to incoming hosts