Software /
code /
prosody
Changeset
9192:1403c64ca140
MUC: Fix traceback when failing to restore a room
When a room exists in the DB but cannot be loaded (e.g. due to max_rooms
or a pre-restore handler) restore_room()/get_room_from_jid() returns false.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 17 Aug 2018 08:12:58 +0100 |
parents | 9191:5192adc5c47f |
children | 9193:aba99b6539f5 |
files | plugins/muc/mod_muc.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Fri Aug 17 00:31:24 2018 +0200 +++ b/plugins/muc/mod_muc.lua Fri Aug 17 08:12:58 2018 +0100 @@ -450,6 +450,9 @@ else return; end + elseif room == false then -- Error loading room + origin.send(st.error_reply(stanza, "wait", "resource-constraint")); + return true; end return room[method](room, origin, stanza); end, -2)