MUC: Assign priorities to config form hooks so they have a consistent order on each...
[prosody.git] / plugins / muc / password.lib.lua
index 8c33aa9a3e376288bf6065ff2acff662f3439f68..02ecdc1a57b318e625627dbb7703981674801e2e 100644 (file)
@@ -17,7 +17,6 @@ local function set_password(room, password)
        if password == "" then password = nil; end
        if room._data.password == password then return false; end
        room._data.password = password;
-       if room.save then room:save(true); end
        return true;
 end
 
@@ -32,7 +31,7 @@ module:hook("muc-config-form", function(event)
                label = "Password";
                value = get_password(event.room) or "";
        });
-end);
+end, 100-7);
 
 module:hook("muc-config-submitted/muc#roomconfig_roomsecret", function(event)
        if set_password(event.room, event.value) then