mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
plugins/muc: Move 'module:get_option_number("max_history_messages")' from mod_muc into history lib; remove from muclib exports
This commit is contained in:
parent
0de9e9485c
commit
940094d4fa
3 changed files with 2 additions and 5 deletions
|
@ -11,7 +11,8 @@ local gettime = os.time;
|
|||
local datetime = require "util.datetime";
|
||||
local st = require "util.stanza";
|
||||
|
||||
local default_history_length, max_history_length = 20, math.huge;
|
||||
local default_history_length = 20;
|
||||
local max_history_length = module:get_option_number("max_history_messages", math.huge);
|
||||
|
||||
local function set_max_history_length(_max_history_length)
|
||||
max_history_length = _max_history_length or math.huge;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue