Software / code / prosody
Comparison
plugins/muc/request.lib.lua @ 9034:1c709e3d2e5e
MUC: Improve labels of all config form items
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 13 Jul 2018 13:22:40 +0100 |
| parent | 8871:b67a861e883e |
| child | 9081:ce57c69a20e2 |
comparison
equal
deleted
inserted
replaced
| 9033:f1b6efd5b379 | 9034:1c709e3d2e5e |
|---|---|
| 23 }, | 23 }, |
| 24 { | 24 { |
| 25 name = "muc#jid"; | 25 name = "muc#jid"; |
| 26 type = "jid-single"; | 26 type = "jid-single"; |
| 27 label = "User ID"; | 27 label = "User ID"; |
| 28 desc = "The user's JID (address)"; | |
| 28 }, | 29 }, |
| 29 { | 30 { |
| 30 name = "muc#roomnick"; | 31 name = "muc#roomnick"; |
| 31 type = "text-single"; | 32 type = "text-single"; |
| 32 label = "Room Nickname"; | 33 label = "Room nickname"; |
| 34 desc = "The user's nickname within the room"; | |
| 33 }, | 35 }, |
| 34 { | 36 { |
| 35 name = "muc#role"; | 37 name = "muc#role"; |
| 36 type = "list-single"; | 38 type = "list-single"; |
| 37 label = "Requested Role"; | 39 label = "Requested role"; |
| 38 value = "participant"; | 40 value = "participant"; |
| 39 options = { | 41 options = { |
| 40 "none", | 42 "none", |
| 41 "visitor", | 43 "visitor", |
| 42 "participant", | 44 "participant", |
| 45 }, | 47 }, |
| 46 { | 48 { |
| 47 name = "muc#request_allow"; | 49 name = "muc#request_allow"; |
| 48 type = "boolean"; | 50 type = "boolean"; |
| 49 label = "Grant voice to this person?"; | 51 label = "Grant voice to this person?"; |
| 52 desc = "Specify whether this person is able to speak in a moderated room"; | |
| 50 value = false; | 53 value = false; |
| 51 } | 54 } |
| 52 }); | 55 }); |
| 53 | 56 |
| 54 local function handle_request(room, origin, stanza, form) | 57 local function handle_request(room, origin, stanza, form) |