diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-28 18:36:03 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-28 18:36:03 +0100 |
commit | 67b91128c9fbbbfe49e0fc571c0542c7187cf762 (patch) | |
tree | d2267560b3dbd0d1e5397f6e83857528456e16be /plugins/muc/muc.lib.lua | |
parent | 54533bf122095fce26d32614040ad3261b0f89fa (diff) | |
download | prosody-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.lua | 2 |
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 |