Software /
code /
prosody
Comparison
plugins/muc/name.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 | 8986:320ae6dbb2e8 |
comparison
equal
deleted
inserted
replaced
7400:f1ff321178d4 | 7401:e16b3fd0bd80 |
---|---|
29 name = "muc#roomconfig_roomname"; | 29 name = "muc#roomconfig_roomname"; |
30 type = "text-single"; | 30 type = "text-single"; |
31 label = "Name"; | 31 label = "Name"; |
32 value = get_name(event.room) or ""; | 32 value = get_name(event.room) or ""; |
33 }); | 33 }); |
34 end); | 34 end, 100-1); |
35 | 35 |
36 module:hook("muc-config-submitted/muc#roomconfig_roomname", function(event) | 36 module:hook("muc-config-submitted/muc#roomconfig_roomname", function(event) |
37 if set_name(event.room, event.value) then | 37 if set_name(event.room, event.value) then |
38 event.status_codes["104"] = true; | 38 event.status_codes["104"] = true; |
39 end | 39 end |