# HG changeset patch # User Kim Alvefur # Date 1527338690 -7200 # Node ID 6dd7fea941f6b4f27417cebe066c0f0142f792d4 # Parent 2a0d7fa4c56adbff084c8f8d426367bd293f51b8 MUC: Use correct field name for description in disco#info (fixes #1148) Introduced in c3254827698d diff -r 2a0d7fa4c56a -r 6dd7fea941f6 plugins/muc/description.lib.lua --- a/plugins/muc/description.lib.lua Fri May 25 03:33:13 2018 +0200 +++ b/plugins/muc/description.lib.lua Sat May 26 14:44:50 2018 +0200 @@ -18,6 +18,14 @@ return true; end +local function add_disco_form(event) + table.insert(event.form, { + name = "muc#roominfo_description"; + label = "Description"; + value = get_description(event.room) or ""; + }); +end + local function add_form_option(event) table.insert(event.form, { name = "muc#roomconfig_roomdesc"; @@ -26,7 +34,7 @@ value = get_description(event.room) or ""; }); end -module:hook("muc-disco#info", add_form_option); +module:hook("muc-disco#info", add_disco_form); module:hook("muc-config-form", add_form_option, 100-2); module:hook("muc-config-submitted/muc#roomconfig_roomdesc", function(event)