diff options
author | daurnimator <quae@daurnimator.com> | 2014-03-20 11:06:10 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-03-20 11:06:10 -0400 |
commit | 99fb14cb63c5c85ef0e087a393720d3f5d0760ad (patch) | |
tree | b618cfd10a4c30f22d2aeec72f9bb918f1c98bc5 /plugins/muc/mod_muc.lua | |
parent | 8b8a024db40b127db492f4a0dd93a94f4e3cf801 (diff) | |
download | prosody-99fb14cb63c5c85ef0e087a393720d3f5d0760ad.tar.gz prosody-99fb14cb63c5c85ef0e087a393720d3f5d0760ad.zip |
plugins/muc: Have utility methods for locking the room
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r-- | plugins/muc/mod_muc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index a1ba5738..e8782414 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -91,10 +91,10 @@ function create_room(jid) 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); |