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 | 46dedfa06a5a0046b34cd43a130a19a29be5c16d (patch) | |
tree | b618cfd10a4c30f22d2aeec72f9bb918f1c98bc5 /plugins/muc/mod_muc.lua | |
parent | 2cacd0b95ae3df65b630a19c4ee866c02830def4 (diff) | |
download | prosody-46dedfa06a5a0046b34cd43a130a19a29be5c16d.tar.gz prosody-46dedfa06a5a0046b34cd43a130a19a29be5c16d.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); |