Mercurial > prosody-modules
diff mod_auto_answer_disco_info/mod_auto_answer_disco_info.lua @ 2903:01692f0052e8
mod_cache_c2s_caps: Use prosody.full_sessions instead of _G.full_sessions (thanks luacheck)
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 07 Mar 2018 17:42:38 +0100 |
parents | 037ad1cd0d31 |
children | 43adc18ff9f3 |
line wrap: on
line diff
--- a/mod_auto_answer_disco_info/mod_auto_answer_disco_info.lua Wed Mar 07 17:41:40 2018 +0100 +++ b/mod_auto_answer_disco_info/mod_auto_answer_disco_info.lua Wed Mar 07 17:42:38 2018 +0100 @@ -14,7 +14,7 @@ local to = stanza.attr.to; local node = query.attr.node; - local target_session = full_sessions[to]; + local target_session = prosody.full_sessions[to]; local disco_info = target_session.caps_cache; if disco_info ~= nil and (node == nil or node == disco_info.attr.node) then local iq = st.reply(stanza);