MUC: Assign priorities to config form hooks so they have a consistent order on each start

This commit is contained in:
Kim Alvefur 2016-04-19 20:31:39 +02:00
parent b42b0643f0
commit 27f234ce4e
11 changed files with 11 additions and 11 deletions

View file

@ -38,7 +38,7 @@ module:hook("muc-config-form", function(event)
label = "Maximum Number of History Messages Returned by Room";
value = tostring(get_historylength(event.room));
});
end);
end, 100-10);
module:hook("muc-config-submitted/muc#roomconfig_historylength", function(event)
if set_historylength(event.room, event.value) then