aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/history.lib.lua
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-04-29 15:13:06 -0400
committerdaurnimator <quae@daurnimator.com>2014-04-29 15:13:06 -0400
commit940094d4fa9737ad53cfaa3f667a05bae520f98c (patch)
tree950dca0b03dc5eab45c1a1c42591ee2640b624cd /plugins/muc/history.lib.lua
parent0de9e9485c7f6018acf7b4413126ffb0f86f5da2 (diff)
downloadprosody-940094d4fa9737ad53cfaa3f667a05bae520f98c.tar.gz
prosody-940094d4fa9737ad53cfaa3f667a05bae520f98c.zip
plugins/muc: Move 'module:get_option_number("max_history_messages")' from mod_muc into history lib; remove from muclib exports
Diffstat (limited to 'plugins/muc/history.lib.lua')
-rw-r--r--plugins/muc/history.lib.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/muc/history.lib.lua b/plugins/muc/history.lib.lua
index 596f92da..1c14cf84 100644
--- a/plugins/muc/history.lib.lua
+++ b/plugins/muc/history.lib.lua
@@ -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;