Comparison

plugins/muc/mod_muc.lua @ 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
parent 9010:3c5ddd53fe50
child 9013:a54bcc76cd22
comparison
equal deleted inserted replaced
9011:ce8e5206aeba 9012:295faf1522f9
205 end 205 end
206 206
207 function delete_room(room) 207 function delete_room(room)
208 module:log("debug", "Deleting %s", room.jid); 208 module:log("debug", "Deleting %s", room.jid);
209 room_configs:set(jid_split(room.jid), nil); 209 room_configs:set(jid_split(room.jid), nil);
210 room_state:set(jid_split(room.jid), nil);
210 persistent_rooms:set(nil, room.jid, nil); 211 persistent_rooms:set(nil, room.jid, nil);
211 room_items_cache[room.jid] = nil; 212 room_items_cache[room.jid] = nil;
212 end 213 end
213 214
214 function module.unload() 215 function module.unload()