Mercurial > prosody-modules
diff mod_muc_limits/mod_muc_limits.lua @ 555:2356ad05fdb6
mod_muc_limits: Don't limit room leaving
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 15 Jan 2012 01:36:11 +0000 |
parents | a2b0174b5c48 |
children | e50bdbaa7802 |
line wrap: on
line diff
--- a/mod_muc_limits/mod_muc_limits.lua Sun Jan 15 01:08:15 2012 +0000 +++ b/mod_muc_limits/mod_muc_limits.lua Sun Jan 15 01:36:11 2012 +0000 @@ -7,6 +7,9 @@ local function handle_stanza(event) local origin, stanza = event.origin, event.stanza; + if stanza.name == "presence" and stanza.attr.type == "unavailable" then -- Don't limit room leaving + return; + end local dest_room, dest_host, dest_nick = jid.split(stanza.attr.to); local room = hosts[module.host].modules.muc.rooms[dest_room.."@"..dest_host]; if not room then return; end