Mercurial > prosody-hg
comparison plugins/muc/mod_muc.lua @ 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 | 5192adc5c47f |
| children | 6dc1aeefa876 |
comparison
equal
deleted
inserted
replaced
| 9191:5192adc5c47f | 9192:1403c64ca140 |
|---|---|
| 448 origin.send(st.error_reply(stanza, "cancel", "item-not-found")); | 448 origin.send(st.error_reply(stanza, "cancel", "item-not-found")); |
| 449 return true; | 449 return true; |
| 450 else | 450 else |
| 451 return; | 451 return; |
| 452 end | 452 end |
| 453 elseif room == false then -- Error loading room | |
| 454 origin.send(st.error_reply(stanza, "wait", "resource-constraint")); | |
| 455 return true; | |
| 453 end | 456 end |
| 454 return room[method](room, origin, stanza); | 457 return room[method](room, origin, stanza); |
| 455 end, -2) | 458 end, -2) |
| 456 end | 459 end |
| 457 | 460 |
