Software /
code /
prosody
Diff
plugins/muc/mod_muc.lua @ 6129:6c66571ab0f9
plugins/muc: Have utility methods for locking the room
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Thu, 20 Mar 2014 11:06:10 -0400 |
parent | 6111:f8b94903be52 |
child | 6141:bf6de8ef66c2 |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Wed Mar 19 17:50:49 2014 -0400 +++ b/plugins/muc/mod_muc.lua Thu Mar 20 11:06:10 2014 -0400 @@ -91,10 +91,10 @@ room.save = room_save; rooms[jid] = room; if lock_rooms then - room.locked = true; + room:lock(); if lock_room_timeout and lock_room_timeout > 0 then module:add_timer(lock_room_timeout, function () - if room.locked then + if room:is_locked() then room:destroy(); -- Not unlocked in time end end);