Comparison

plugins/muc/mod_muc.lua @ 6240:641756a6a5f7

plugins/muc: Move 'module:get_option_number("max_history_messages")' from mod_muc into history lib; remove from muclib exports
author daurnimator <quae@daurnimator.com>
date Tue, 29 Apr 2014 15:13:06 -0400
parent 6239:a791dd781238
child 6241:6b4ff34dc8ea
comparison
equal deleted inserted replaced
6239:a791dd781238 6240:641756a6a5f7
31 local hosts = prosody.hosts; 31 local hosts = prosody.hosts;
32 32
33 rooms = {}; 33 rooms = {};
34 local rooms = rooms; 34 local rooms = rooms;
35 35
36 -- Configurable options
37 muclib.set_max_history_length(module:get_option_number("max_history_messages"));
38 36
39 module:depends("disco"); 37 module:depends("disco");
40 module:add_identity("conference", "text", module:get_option_string("name", "Prosody Chatrooms")); 38 module:add_identity("conference", "text", module:get_option_string("name", "Prosody Chatrooms"));
41 module:add_feature("http://jabber.org/protocol/muc"); 39 module:add_feature("http://jabber.org/protocol/muc");
42 module:depends "muc_unique" 40 module:depends "muc_unique"