Software /
code /
prosody
Diff
plugins/muc/history.lib.lua @ 7401:e16b3fd0bd80
MUC: Assign priorities to config form hooks so they have a consistent order on each start
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 19 Apr 2016 20:31:39 +0200 |
parent | 7350:24e2369b67f9 |
child | 8027:c2e7dfd87abb |
line wrap: on
line diff
--- a/plugins/muc/history.lib.lua Tue Apr 19 19:00:46 2016 +0200 +++ b/plugins/muc/history.lib.lua Tue Apr 19 20:31:39 2016 +0200 @@ -38,7 +38,7 @@ 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