Diff

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
line wrap: on
line diff
--- a/plugins/mod_dialback.lua	Sat Mar 03 13:28:33 2012 +0100
+++ b/plugins/mod_dialback.lua	Sat Mar 03 16:45:34 2012 +0100
@@ -155,12 +155,14 @@
 
 module:hook_stanza(xmlns_stream, "features", function (origin, stanza)
 	if not origin.external_auth or origin.external_auth == "failed" then
+		module:log("debug", "Initiating dialback...");
 		initiate_dialback(origin);
 		return true;
 	end
 end, 100);
 
 module:hook("s2s-authenticate-legacy", function (event)
+	module:log("debug", "Initiating dialback...");
 	initiate_dialback(event.origin);
 	return true;
 end, 100);