Software /
code /
prosody
Comparison
plugins/muc/description.lib.lua @ 8830:5d7db3c7c026
MUC: Pass description via formdata field where it should be
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 26 May 2018 15:09:27 +0200 |
parent | 8829:6dd7fea941f6 |
child | 8831:f25fa63750fb |
comparison
equal
deleted
inserted
replaced
8829:6dd7fea941f6 | 8830:5d7db3c7c026 |
---|---|
20 | 20 |
21 local function add_disco_form(event) | 21 local function add_disco_form(event) |
22 table.insert(event.form, { | 22 table.insert(event.form, { |
23 name = "muc#roominfo_description"; | 23 name = "muc#roominfo_description"; |
24 label = "Description"; | 24 label = "Description"; |
25 value = get_description(event.room) or ""; | 25 value = ""; |
26 }); | 26 }); |
27 event.formdata["muc#roominfo_description"] = get_description(event.room); | |
27 end | 28 end |
28 | 29 |
29 local function add_form_option(event) | 30 local function add_form_option(event) |
30 table.insert(event.form, { | 31 table.insert(event.form, { |
31 name = "muc#roomconfig_roomdesc"; | 32 name = "muc#roomconfig_roomdesc"; |