MUC: Assign priorities to config form hooks so they have a consistent order on each...
[prosody.git] / plugins / muc / password.lib.lua
index da122d1c4973579c589580ab56c43851abf0a1e7..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;
-       room:save(true);
        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