mod_presence_cache: Fix traceback due to changes in trunk
Reason used to be a string and now it might be an util.error
--- a/mod_presence_cache/mod_presence_cache.lua Sun Dec 08 18:48:11 2019 +0000
+++ b/mod_presence_cache/mod_presence_cache.lua Mon Dec 09 16:51:36 2019 +0100
@@ -103,7 +103,7 @@
local function clear_cache_from_s2s(remote, reason)
if not remote then return end
- if reason and reason:find("timeout") then return end -- Ignore connections closed for being idle
+ -- FIXME Ignore if connection closed for being idle
module:log("debug", "Dropping cached presence from host %s", remote);