plugins/muc/mod_muc.lua

changeset 2458
b4628c4d9ee2
parent 2033
38d32c154cec
child 2925
692b3c6c5bd2
equal deleted inserted replaced
2457:102c81e37878 2458:b4628c4d9ee2
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;

mercurial