diff options
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/description.lib.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/muc/description.lib.lua b/plugins/muc/description.lib.lua index d4bc1a71..d9e02724 100644 --- a/plugins/muc/description.lib.lua +++ b/plugins/muc/description.lib.lua @@ -18,6 +18,14 @@ local function set_description(room, description) 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 @@ local function add_form_option(event) 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) |