aboutsummaryrefslogtreecommitdiffstats
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
commit0f49ec509009b3085fe235bf35ec1e565dd3502d (patch)
tree1728b7c02940003f16156c0e61bd280499b850d3
parent0ac83a5e320b109a0736aa469a9a3d33913d1697 (diff)
downloadprosody-0f49ec509009b3085fe235bf35ec1e565dd3502d.tar.gz
prosody-0f49ec509009b3085fe235bf35ec1e565dd3502d.zip
MUC: Purge saved room state when deleting a room
-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