aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-08-07 18:03:31 -0400
committerdaurnimator <quae@daurnimator.com>2014-08-07 18:03:31 -0400
commitadf4b5a52e544766157ddfef5cef9db76768af4a (patch)
treefa19c9b172ccbed113ca0c03007afbfb110dfb8c /plugins
parent0f02217cb01316c6fcbfded5df0ca39346d63752 (diff)
downloadprosody-adf4b5a52e544766157ddfef5cef9db76768af4a.tar.gz
prosody-adf4b5a52e544766157ddfef5cef9db76768af4a.zip
plugins/muc/mod_muc: persistent rooms keyval store needs username as nil
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/mod_muc.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index bffb6579..3f01ee11 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -52,7 +52,7 @@ local room_configs = module:open_store("config");
local function room_save(room, forced)
local node = jid_split(room.jid);
local is_persistent = persistent.get(room);
- persistent_rooms:set(room.jid, is_persistent);
+ persistent_rooms:set(nil, room.jid, is_persistent);
if is_persistent then
local history = room._data.history;
room._data.history = nil;
@@ -102,7 +102,7 @@ function forget_room(jid)
local node = jid_split(room.jid);
room_configs:set(node, nil);
if persistent.get(room_jid) then
- persistent_rooms:set(room_jid, nil);
+ persistent_rooms:set(nil, room_jid, nil);
end
end
@@ -110,11 +110,11 @@ function get_room_from_jid(room_jid)
local room = rooms[room_jid];
if room == nil then
-- Check if in persistent storage
- if persistent_rooms:get(room_jid) then
+ if persistent_rooms:get(nil, room_jid) then
room = restore_room(room_jid);
if room == nil then
module:log("error", "Missing data for room '%s', removing from persistent room list", room_jid);
- persistent_rooms:set(room_jid, nil);
+ persistent_rooms:set(nil, room_jid, nil);
end
end
end