Comparison

plugins/muc/mod_muc.lua @ 9051:68386f7b9fc9

MUC: Add some comments clarifying methods
author Matthew Wild <mwild1@gmail.com>
date Tue, 17 Jul 2018 10:35:33 +0100
parent 9050:f5c43e829d93
child 9078:9e339197c724
comparison
equal deleted inserted replaced
9050:f5c43e829d93 9051:68386f7b9fc9
205 room.handle_first_presence = handle_broken_room; 205 room.handle_first_presence = handle_broken_room;
206 return room; 206 return room;
207 end 207 end
208 end 208 end
209 209
210 -- Removes a room from memory, without saving it (save first if required)
210 function forget_room(room) 211 function forget_room(room)
211 module:log("debug", "Forgetting %s", room.jid); 212 module:log("debug", "Forgetting %s", room.jid);
212 rooms.save = nil; 213 rooms.save = nil;
213 rooms:set(room.jid, nil); 214 rooms:set(room.jid, nil);
214 end 215 end
215 216
217 -- Removes a room from the database (may remain in memory)
216 function delete_room(room) 218 function delete_room(room)
217 module:log("debug", "Deleting %s", room.jid); 219 module:log("debug", "Deleting %s", room.jid);
218 room_configs:set(jid_split(room.jid), nil); 220 room_configs:set(jid_split(room.jid), nil);
219 room_state:set(jid_split(room.jid), nil); 221 room_state:set(jid_split(room.jid), nil);
220 persistent_rooms:set(nil, room.jid, nil); 222 persistent_rooms:set(nil, room.jid, nil);