From 64189fdc63a2a04d05a738308deb76a303638445 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 17 Jul 2018 10:35:33 +0100 Subject: MUC: Add some comments clarifying methods --- plugins/muc/mod_muc.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 5ee328f5..544d6652 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -207,12 +207,14 @@ local function restore_room(jid) end end +-- Removes a room from memory, without saving it (save first if required) function forget_room(room) module:log("debug", "Forgetting %s", room.jid); rooms.save = nil; rooms:set(room.jid, nil); end +-- Removes a room from the database (may remain in memory) function delete_room(room) module:log("debug", "Deleting %s", room.jid); room_configs:set(jid_split(room.jid), nil); -- cgit v1.2.3