comparison mod_auto_answer_disco_info/mod_auto_answer_disco_info.lua @ 2912:6e5bd5d8a5e2

mod_auto_answer_disco_info: Improve the debug message to include the recipient
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 07 Mar 2018 20:17:56 +0100
parents 43adc18ff9f3
children e0ef90e96931
comparison
equal deleted inserted replaced
2911:43adc18ff9f3 2912:6e5bd5d8a5e2
21 21
22 local disco_info = target_session.caps_cache; 22 local disco_info = target_session.caps_cache;
23 if disco_info ~= nil and (node == nil or node == disco_info.attr.node) then 23 if disco_info ~= nil and (node == nil or node == disco_info.attr.node) then
24 local iq = st.reply(stanza); 24 local iq = st.reply(stanza);
25 iq:add_child(st.clone(disco_info)); 25 iq:add_child(st.clone(disco_info));
26 module:log("debug", "Answering disco#info on the behalf of the recipient") 26 module:log("debug", "Answering disco#info on the behalf of %s", to);
27 module:send(iq); 27 module:send(iq);
28 return true; 28 return true;
29 end 29 end
30 end 30 end
31 31