aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-28 18:36:03 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-28 18:36:03 +0100
commit67b91128c9fbbbfe49e0fc571c0542c7187cf762 (patch)
treed2267560b3dbd0d1e5397f6e83857528456e16be /plugins/muc/muc.lib.lua
parent54533bf122095fce26d32614040ad3261b0f89fa (diff)
downloadprosody-67b91128c9fbbbfe49e0fc571c0542c7187cf762.tar.gz
prosody-67b91128c9fbbbfe49e0fc571c0542c7187cf762.zip
mod_muc/muc.lib: Fall back to default_history_length if no length in config
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 5170c94a..9be1736f 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -336,7 +336,7 @@ function room_mt:get_changesubject()
return self._data.changesubject;
end
function room_mt:get_historylength()
- return self._data.history_length
+ return self._data.history_length or default_history_length;
end
function room_mt:set_historylength(length)
if tonumber(length) == nil then