MUC: Assign priorities to config form hooks so they have a consistent order on each...
[prosody.git] / plugins / muc / whois.lib.lua
index 2f492c450dcbc5eb968d11c3730f761800fa1ff2..4acf288c3ca27fbdd179495b3de68458c7eb1dcc 100644 (file)
@@ -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