diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-07-17 10:35:33 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-07-17 10:35:33 +0100 |
commit | 64189fdc63a2a04d05a738308deb76a303638445 (patch) | |
tree | 773c554f5cd6a64b9788bea889feba8d340c728d /plugins/muc | |
parent | 045262aca5a651b0ea966cff8af48ae26c9a5377 (diff) | |
download | prosody-64189fdc63a2a04d05a738308deb76a303638445.tar.gz prosody-64189fdc63a2a04d05a738308deb76a303638445.zip |
MUC: Add some comments clarifying methods
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/mod_muc.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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); |