X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmuc%2Fwhois.lib.lua;h=4acf288c3ca27fbdd179495b3de68458c7eb1dcc;hb=74c88eed6701d02bf77a59aeedb8d8204c41bc17;hp=2f492c450dcbc5eb968d11c3730f761800fa1ff2;hpb=a81725f764e9fb73f50008e65b75cdfecbc6d0e3;p=prosody.git diff --git a/plugins/muc/whois.lib.lua b/plugins/muc/whois.lib.lua index 2f492c45..4acf288c 100644 --- a/plugins/muc/whois.lib.lua +++ b/plugins/muc/whois.lib.lua @@ -20,7 +20,6 @@ local function set_whois(room, whois) assert(valid_whois[whois], "Invalid whois value") if get_whois(room) == whois then return false; end room._data.whois = whois; - if room.save then room:save(true); end return true; end @@ -39,7 +38,7 @@ module:hook("muc-config-form", function(event) { value = 'anyone', label = 'Anyone', default = whois == 'anyone' } } }); -end); +end, 100-9); module:hook("muc-config-submitted/muc#roomconfig_whois", function(event) if set_whois(event.room, event.value) then