aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
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