# HG changeset patch # User Emmanuel Gil Peyrot # Date 1528464327 -7200 # Node ID 1fe7da46e91527888a2788ff19c556638e99ccda # Parent ce946d9d982e3be40d2992d9be5b3cf13f769fbd mod_auto_answer_disco_info: Don’t traceback on iqs coming from mod_muc. diff -r ce946d9d982e -r 1fe7da46e915 mod_auto_answer_disco_info/mod_auto_answer_disco_info.lua --- a/mod_auto_answer_disco_info/mod_auto_answer_disco_info.lua Fri Jun 08 11:49:29 2018 +0200 +++ b/mod_auto_answer_disco_info/mod_auto_answer_disco_info.lua Fri Jun 08 15:25:27 2018 +0200 @@ -23,7 +23,8 @@ if disco_info ~= nil and (node == nil or node == disco_info.attr.node) then local iq = st.reply(stanza); iq:add_child(st.clone(disco_info)); - origin.log("debug", "Answering disco#info on the behalf of %s", to); + local log = origin.log or module._log; + log("debug", "Answering disco#info on the behalf of %s", to); module:send(iq); return true; end