aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-11 03:27:02 +0200
committerKim Alvefur <zash@zash.se>2018-07-11 03:27:02 +0200
commite6ad9f6b7886c2c0d144968048dd753273a25851 (patch)
tree1728b7c02940003f16156c0e61bd280499b850d3 /plugins
parentcadce751213fe3eddb4eb5320520beb602ab8a68 (diff)
downloadprosody-e6ad9f6b7886c2c0d144968048dd753273a25851.tar.gz
prosody-e6ad9f6b7886c2c0d144968048dd753273a25851.zip
MUC: Purge saved room state when deleting a room
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/mod_muc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index b3cd5f31..71b39eab 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -207,6 +207,7 @@ end
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