# HG changeset patch # User Matthew Wild # Date 1326591650 0 # Node ID e50bdbaa7802ac91d422cddf78cb549cd78f2bc2 # Parent 2356ad05fdb6c5547ebfdc8e82771c88c5709173 mod_muc_limits: Remove throttle object from all rooms on unload (to make sure new settings are applied on reload) diff -r 2356ad05fdb6 -r e50bdbaa7802 mod_muc_limits/mod_muc_limits.lua --- a/mod_muc_limits/mod_muc_limits.lua Sun Jan 15 01:36:11 2012 +0000 +++ b/mod_muc_limits/mod_muc_limits.lua Sun Jan 15 01:40:50 2012 +0000 @@ -31,6 +31,12 @@ end end +function module.unload() + for room_jid, room in pairs(hosts[module.host].modules.muc.rooms) do + room.throttle = nil; + end +end + module:hook("message/bare", handle_stanza, 10); module:hook("message/full", handle_stanza, 10); module:hook("presence/bare", handle_stanza, 10);