aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-07-17 10:35:33 +0100
committerMatthew Wild <mwild1@gmail.com>2018-07-17 10:35:33 +0100
commit64189fdc63a2a04d05a738308deb76a303638445 (patch)
tree773c554f5cd6a64b9788bea889feba8d340c728d /plugins/muc/mod_muc.lua
parent045262aca5a651b0ea966cff8af48ae26c9a5377 (diff)
downloadprosody-64189fdc63a2a04d05a738308deb76a303638445.tar.gz
prosody-64189fdc63a2a04d05a738308deb76a303638445.zip
MUC: Add some comments clarifying methods
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r--plugins/muc/mod_muc.lua2
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);