# HG changeset patch # User Kim Alvefur # Date 1679088595 -3600 # Node ID 8cfbcbc0fb897d3b920d366d999ade97bf13b1f9 # Parent 40be37652d7039dcd048f7f72e981a31aa47b602 mod_muc_rtbl: Handle node purge Prevents the module from going out of sync with the node in case this event ever happens. diff -r 40be37652d70 -r 8cfbcbc0fb89 mod_muc_rtbl/mod_muc_rtbl.lua --- a/mod_muc_rtbl/mod_muc_rtbl.lua Fri Mar 24 00:07:58 2023 +0100 +++ b/mod_muc_rtbl/mod_muc_rtbl.lua Fri Mar 17 22:29:55 2023 +0100 @@ -38,6 +38,13 @@ module:log("debug", "Retracted hash: %s", hash); banned_hashes[hash] = nil; end; + + purge = function() + module:log("debug", "Purge all hashes"); + for hash in pairs(banned_hashes) do + banned_hashes[hash] = nil; + end + end; }); function request_list()