mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
MUC: Assign priorities to config form hooks so they have a consistent order on each start
This commit is contained in:
parent
b42b0643f0
commit
27f234ce4e
11 changed files with 11 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue