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