Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
4784:e10b623ccecb | 4785:36234dc4b177 |
---|---|
334 end | 334 end |
335 function room_mt:get_changesubject() | 335 function room_mt:get_changesubject() |
336 return self._data.changesubject; | 336 return self._data.changesubject; |
337 end | 337 end |
338 function room_mt:get_historylength() | 338 function room_mt:get_historylength() |
339 return self._data.history_length | 339 return self._data.history_length or default_history_length; |
340 end | 340 end |
341 function room_mt:set_historylength(length) | 341 function room_mt:set_historylength(length) |
342 if tonumber(length) == nil then | 342 if tonumber(length) == nil then |
343 return | 343 return |
344 end | 344 end |