X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmuc%2Fhidden.lib.lua;h=b2fe6216f6e0cdca3988604c4108bccea075fc30;hb=873005c41b407731d759be423c51cb251346c0ae;hp=35ca302636e618226f5440958903318e338a2ca3;hpb=dc2e63e570a7722295dfe119ede0c3ffbb9ee5bc;p=prosody.git diff --git a/plugins/muc/hidden.lib.lua b/plugins/muc/hidden.lib.lua index 35ca3026..b2fe6216 100644 --- a/plugins/muc/hidden.lib.lua +++ b/plugins/muc/hidden.lib.lua @@ -15,7 +15,6 @@ local function set_hidden(room, hidden) hidden = hidden and true or nil; if get_hidden(room) == hidden then return false; end room._data.hidden = hidden; - 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 Publicly Searchable?"; value = not get_hidden(event.room); }); -end); +end, 100-5); module:hook("muc-config-submitted/muc#roomconfig_publicroom", function(event) if set_hidden(event.room, not event.value) then