Software /
code /
prosody
Changeset
9012:295faf1522f9
MUC: Purge saved room state when deleting a room
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 11 Jul 2018 03:27:02 +0200 |
parents | 9011:ce8e5206aeba |
children | 9013:a54bcc76cd22 |
files | plugins/muc/mod_muc.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Wed Jul 11 02:29:01 2018 +0200 +++ b/plugins/muc/mod_muc.lua Wed Jul 11 03:27:02 2018 +0200 @@ -207,6 +207,7 @@ function delete_room(room) module:log("debug", "Deleting %s", room.jid); room_configs:set(jid_split(room.jid), nil); + room_state:set(jid_split(room.jid), nil); persistent_rooms:set(nil, room.jid, nil); room_items_cache[room.jid] = nil; end