14 local muc_host = module:get_host(); |
14 local muc_host = module:get_host(); |
15 local muc_name = module:get_option("name"); |
15 local muc_name = module:get_option("name"); |
16 if type(muc_name) ~= "string" then muc_name = "Prosody Chatrooms"; end |
16 if type(muc_name) ~= "string" then muc_name = "Prosody Chatrooms"; end |
17 local restrict_room_creation = module:get_option("restrict_room_creation"); |
17 local restrict_room_creation = module:get_option("restrict_room_creation"); |
18 if restrict_room_creation and restrict_room_creation ~= true then restrict_room_creation = nil; end |
18 if restrict_room_creation and restrict_room_creation ~= true then restrict_room_creation = nil; end |
19 local history_length = 20; |
|
20 |
19 |
21 local muc_new_room = module:require "muc".new_room; |
20 local muc_new_room = module:require "muc".new_room; |
22 local register_component = require "core.componentmanager".register_component; |
21 local register_component = require "core.componentmanager".register_component; |
23 local deregister_component = require "core.componentmanager".deregister_component; |
22 local deregister_component = require "core.componentmanager".deregister_component; |
24 local jid_split = require "util.jid".split; |
23 local jid_split = require "util.jid".split; |