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 | 9570749b05e6306177708a3dfafa63cb49a499df (patch) | |
tree | d2267560b3dbd0d1e5397f6e83857528456e16be /plugins/muc | |
parent | 30957d900de03520b693e9ee5d0310916e5600b4 (diff) | |
download | prosody-9570749b05e6306177708a3dfafa63cb49a499df.tar.gz prosody-9570749b05e6306177708a3dfafa63cb49a499df.zip |
mod_muc/muc.lib: Fall back to default_history_length if no length in config
Diffstat (limited to 'plugins/muc')
-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 |