Software /
code /
prosody
Comparison
plugins/muc/moderated.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 | 7353:ca31d3271cf8 |
child | 8851:ab5f678f1376 |
comparison
equal
deleted
inserted
replaced
7400:f1ff321178d4 | 7401:e16b3fd0bd80 |
---|---|
27 name = "muc#roomconfig_moderatedroom"; | 27 name = "muc#roomconfig_moderatedroom"; |
28 type = "boolean"; | 28 type = "boolean"; |
29 label = "Make Room Moderated?"; | 29 label = "Make Room Moderated?"; |
30 value = get_moderated(event.room); | 30 value = get_moderated(event.room); |
31 }); | 31 }); |
32 end); | 32 end, 100-4); |
33 | 33 |
34 module:hook("muc-config-submitted/muc#roomconfig_moderatedroom", function(event) | 34 module:hook("muc-config-submitted/muc#roomconfig_moderatedroom", function(event) |
35 if set_moderated(event.room, event.value) then | 35 if set_moderated(event.room, event.value) then |
36 event.status_codes["104"] = true; | 36 event.status_codes["104"] = true; |
37 end | 37 end |