Software /
code /
prosody
Comparison
plugins/muc/password.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 | 8996:2df7dc99566a |
comparison
equal
deleted
inserted
replaced
7400:f1ff321178d4 | 7401:e16b3fd0bd80 |
---|---|
29 name = "muc#roomconfig_roomsecret"; | 29 name = "muc#roomconfig_roomsecret"; |
30 type = "text-private"; | 30 type = "text-private"; |
31 label = "Password"; | 31 label = "Password"; |
32 value = get_password(event.room) or ""; | 32 value = get_password(event.room) or ""; |
33 }); | 33 }); |
34 end); | 34 end, 100-7); |
35 | 35 |
36 module:hook("muc-config-submitted/muc#roomconfig_roomsecret", function(event) | 36 module:hook("muc-config-submitted/muc#roomconfig_roomsecret", function(event) |
37 if set_password(event.room, event.value) then | 37 if set_password(event.room, event.value) then |
38 event.status_codes["104"] = true; | 38 event.status_codes["104"] = true; |
39 end | 39 end |