Changeset

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 2902:037ad1cd0d31
children 2904:788f3616e6a0
files mod_auto_answer_disco_info/mod_auto_answer_disco_info.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);