Mercurial > prosody-modules
changeset 556:e50bdbaa7802
mod_muc_limits: Remove throttle object from all rooms on unload (to make sure new settings are applied on reload)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 15 Jan 2012 01:40:50 +0000 (2012-01-15) |
parents | 2356ad05fdb6 |
children | 14f39769c9e0 |
files | mod_muc_limits/mod_muc_limits.lua |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);