aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/history.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-05-23 20:37:16 +0100
committerMatthew Wild <mwild1@gmail.com>2014-05-23 20:37:16 +0100
commit352fc4fcb0284d81ccd617cdf7d4aa1d66b8f507 (patch)
tree3f5de516b7b87f9a82f26861db6700c2a0320540 /plugins/muc/history.lib.lua
parent6d80a449f0a07ab560ff68a41a7d21de3d5af1b6 (diff)
parent4d7106bee63fe544a4bec49c201d56b93d3794d3 (diff)
downloadprosody-352fc4fcb0284d81ccd617cdf7d4aa1d66b8f507.tar.gz
prosody-352fc4fcb0284d81ccd617cdf7d4aa1d66b8f507.zip
Merge with daurnimator
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;