Mercurial > prosody-modules
comparison mod_cache_c2s_caps/mod_cache_c2s_caps.lua @ 4018:f27becd421bd
mod_cache_c2s_caps: also log full JID for caps
author | Georg Lukas <georg@op-co.de> |
---|---|
date | Tue, 12 May 2020 14:14:51 +0200 |
parents | 820c891a54cc |
children | 8fc16174fec6 |
comparison
equal
deleted
inserted
replaced
4017:015452258952 | 4018:f27becd421bd |
---|---|
87 if (origin.caps_cache and origin.caps_cache.attr.node == node_query) or in_flight_iqs[from..node_query] ~= nil then | 87 if (origin.caps_cache and origin.caps_cache.attr.node == node_query) or in_flight_iqs[from..node_query] ~= nil then |
88 origin.log("debug", "Already requested these caps, skipping"); | 88 origin.log("debug", "Already requested these caps, skipping"); |
89 return; | 89 return; |
90 end | 90 end |
91 | 91 |
92 origin.log("debug", "Received presence with SHA-1 caps %s, querying disco#info", node_query); | 92 origin.log("debug", "Received presence from %s with SHA-1 caps %s, querying disco#info", from, node_query); |
93 | 93 |
94 local id = uuid_gen(); | 94 local id = uuid_gen(); |
95 iq_node_map[from..id] = node_query | 95 iq_node_map[from..id] = node_query |
96 local iq = st_iq({ type = "get", from = module.host, to = from, id = id }) | 96 local iq = st_iq({ type = "get", from = module.host, to = from, id = id }) |
97 :tag("query", { xmlns = "http://jabber.org/protocol/disco#info", node = node_query }); | 97 :tag("query", { xmlns = "http://jabber.org/protocol/disco#info", node = node_query }); |