diff options
author | Kim Alvefur <zash@zash.se> | 2016-02-03 02:05:49 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-02-03 02:05:49 +0100 |
commit | 6a276c275d705bb72bcdc74f8450f188b3056d27 (patch) | |
tree | 14b9403c24dc354ae486a161404c596048a9018d /plugins/muc/description.lib.lua | |
parent | 11dcbc505b599add9294e27addaa697aa97e1e0c (diff) | |
download | prosody-6a276c275d705bb72bcdc74f8450f188b3056d27.tar.gz prosody-6a276c275d705bb72bcdc74f8450f188b3056d27.zip |
MUC: Separate form data from form in disco#info event
Diffstat (limited to 'plugins/muc/description.lib.lua')
-rw-r--r-- | plugins/muc/description.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/description.lib.lua b/plugins/muc/description.lib.lua index c4b1bd09..d94bc3f1 100644 --- a/plugins/muc/description.lib.lua +++ b/plugins/muc/description.lib.lua @@ -24,8 +24,8 @@ local function add_form_option(event) name = "muc#roomconfig_roomdesc"; type = "text-single"; label = "Description"; - value = get_description(event.room) or ""; }); + event.formdata["muc#roomconfig_roomdesc"] = get_description(event.room) or ""; end module:hook("muc-disco#info", add_form_option); module:hook("muc-config-form", add_form_option); |