aboutsummaryrefslogtreecommitdiffstats
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
commit78bc1a2cd58f4582cc309e9fddd832c56018526c (patch)
tree773c554f5cd6a64b9788bea889feba8d340c728d
parentf5aa8fe9b468eef0920797c3a2ce78968d9b354e (diff)
downloadprosody-78bc1a2cd58f4582cc309e9fddd832c56018526c.tar.gz
prosody-78bc1a2cd58f4582cc309e9fddd832c56018526c.zip
MUC: Add some comments clarifying methods
-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);