# HG changeset patch # User Matthew Wild # Date 1335634563 -3600 # Node ID 36234dc4b177bbcd76b09c8c97e9c2aba6cc22a2 # Parent e10b623ccecbd78460e886412a1ad12167bce54e mod_muc/muc.lib: Fall back to default_history_length if no length in config diff -r e10b623ccecb -r 36234dc4b177 plugins/muc/muc.lib.lua --- 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