Mercurial > prosody-hg
comparison plugins/muc/lock.lib.lua @ 6329:6b3eb1611587
mod_muc: Import util.stanza into the config handler modules that need it. Fixes #432.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 05 Aug 2014 09:55:08 +0100 |
| parents | 67efeadd9e77 |
| children | e465b584547b |
comparison
equal
deleted
inserted
replaced
| 6328:93fb28851d9e | 6329:6b3eb1611587 |
|---|---|
| 4 -- Copyright (C) 2014 Daurnimator | 4 -- Copyright (C) 2014 Daurnimator |
| 5 -- | 5 -- |
| 6 -- This project is MIT/X11 licensed. Please see the | 6 -- This project is MIT/X11 licensed. Please see the |
| 7 -- COPYING file in the source package for more information. | 7 -- COPYING file in the source package for more information. |
| 8 -- | 8 -- |
| 9 | |
| 10 local st = require "util.stanza"; | |
| 9 | 11 |
| 10 local lock_rooms = module:get_option_boolean("muc_room_locking", false); | 12 local lock_rooms = module:get_option_boolean("muc_room_locking", false); |
| 11 local lock_room_timeout = module:get_option_number("muc_room_lock_timeout", 300); | 13 local lock_room_timeout = module:get_option_number("muc_room_lock_timeout", 300); |
| 12 | 14 |
| 13 local function lock(room) | 15 local function lock(room) |
