Software /
code /
prosody
Changeset
8519:e7808f8d7d11
MUC: Prevent traceback in case of no history items to serialize (fixes #1083)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 15 Feb 2018 02:54:52 +0100 |
parents | 8518:0de0018bdf91 |
children | 8520:e959bc51de75 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Sun Feb 04 01:40:11 2018 +0100 +++ b/plugins/muc/muc.lib.lua Thu Feb 15 02:54:52 2018 +0100 @@ -1378,7 +1378,7 @@ end end local history = self._history; - if history then + if history and history[1] ~= nil then state._last_message = st.preserialize(history[#history].stanza); state._last_message_at = history[#history].timestamp; end