changeset 556 | e50bdbaa7802 |
parent 555 | 2356ad05fdb6 |
child 557 | 14f39769c9e0 |
--- 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);