Mercurial > prosody-hg
comparison plugins/muc/muc.lib.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 |
| parents | a58685df9d16 |
| children | 2420e308f64a |
comparison
equal
deleted
inserted
replaced
| 6239:a791dd781238 | 6240:641756a6a5f7 |
|---|---|
| 1112 room_mt.get_historylength = history.get_length; | 1112 room_mt.get_historylength = history.get_length; |
| 1113 room_mt.set_historylength = history.set_length; | 1113 room_mt.set_historylength = history.set_length; |
| 1114 | 1114 |
| 1115 local _M = {}; -- module "muc" | 1115 local _M = {}; -- module "muc" |
| 1116 | 1116 |
| 1117 _M.set_max_history_length = history.set_max_length; | |
| 1118 | |
| 1119 function _M.new_room(jid, config) | 1117 function _M.new_room(jid, config) |
| 1120 return setmetatable({ | 1118 return setmetatable({ |
| 1121 jid = jid; | 1119 jid = jid; |
| 1122 _jid_nick = {}; | 1120 _jid_nick = {}; |
| 1123 _occupants = {}; | 1121 _occupants = {}; |
