19 if module:get_host_type() ~= "component" then |
19 if module:get_host_type() ~= "component" then |
20 error("MUC should be loaded as a component, please see http://prosody.im/doc/components", 0); |
20 error("MUC should be loaded as a component, please see http://prosody.im/doc/components", 0); |
21 end |
21 end |
22 |
22 |
23 local muc_domain = module:get_host(); |
23 local muc_domain = module:get_host(); |
24 local muc_name = "MUCMUCMUC!!!"; |
24 local muc_name = "Chatrooms"; |
25 local history_length = 20; |
25 local history_length = 20; |
26 |
26 |
27 -- room_name -> room |
27 -- room_name -> room |
28 -- occupant_room_nick -> data |
28 -- occupant_room_nick -> data |
29 -- affiliation = ... |
29 -- affiliation = ... |