Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 4785:36234dc4b177
mod_muc/muc.lib: Fall back to default_history_length if no length in config
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 18:36:03 +0100 |
parent | 4766:1d2646b63084 |
child | 4839:4905aed00382 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Sat Apr 28 16:41:35 2012 +0100 +++ b/plugins/muc/muc.lib.lua Sat Apr 28 18:36:03 2012 +0100 @@ -336,7 +336,7 @@ 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