aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/persistent.lib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/muc/persistent.lib.lua')
-rw-r--r--plugins/muc/persistent.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/persistent.lib.lua b/plugins/muc/persistent.lib.lua
index a72bcbb5..60493e06 100644
--- a/plugins/muc/persistent.lib.lua
+++ b/plugins/muc/persistent.lib.lua
@@ -15,7 +15,7 @@ local function set_persistent(room, persistent)
persistent = persistent and true or nil;
if get_persistent(room) == persistent then return false; end
room._data.persistent = persistent;
- if room.save then room:save(true); end
+ room:save(true);
return true;
end