aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/description.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-04 09:18:53 +0100
committerKim Alvefur <zash@zash.se>2016-02-04 09:18:53 +0100
commit7b11f2c6503e05ad3281b30c4998a8faaea3e418 (patch)
tree6d903721403765ab70992035ec87b439b7b76f1e /plugins/muc/description.lib.lua
parent189039bd778c59fd5cb5c366160e3223635b18b1 (diff)
downloadprosody-7b11f2c6503e05ad3281b30c4998a8faaea3e418.tar.gz
prosody-7b11f2c6503e05ad3281b30c4998a8faaea3e418.zip
MUC: Roll back parts of 50b9a7e86de9 that were not in the disco#info event
Diffstat (limited to 'plugins/muc/description.lib.lua')
-rw-r--r--plugins/muc/description.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/description.lib.lua b/plugins/muc/description.lib.lua
index d94bc3f1..c4b1bd09 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);