X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmuc%2Fpersistent.lib.lua;h=abceafe1cb784018ef3cc70746aa72adf9d0e916;hb=HEAD;hp=a72bcbb54bb19354bed042a2473e63c8ce3f278a;hpb=6361d13806347a826bea100bdb50563b012bad99;p=prosody.git diff --git a/plugins/muc/persistent.lib.lua b/plugins/muc/persistent.lib.lua index a72bcbb5..abceafe1 100644 --- a/plugins/muc/persistent.lib.lua +++ b/plugins/muc/persistent.lib.lua @@ -15,7 +15,6 @@ 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 return true; end @@ -26,7 +25,7 @@ module:hook("muc-config-form", function(event) label = "Make Room Persistent?"; value = get_persistent(event.room); }); -end); +end, 100-3); module:hook("muc-config-submitted/muc#roomconfig_persistentroom", function(event) if set_persistent(event.room, event.value) then