aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/name.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-03 02:05:49 +0100
committerKim Alvefur <zash@zash.se>2016-02-03 02:05:49 +0100
commit6a276c275d705bb72bcdc74f8450f188b3056d27 (patch)
tree14b9403c24dc354ae486a161404c596048a9018d /plugins/muc/name.lib.lua
parent11dcbc505b599add9294e27addaa697aa97e1e0c (diff)
downloadprosody-6a276c275d705bb72bcdc74f8450f188b3056d27.tar.gz
prosody-6a276c275d705bb72bcdc74f8450f188b3056d27.zip
MUC: Separate form data from form in disco#info event
Diffstat (limited to 'plugins/muc/name.lib.lua')
-rw-r--r--plugins/muc/name.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/name.lib.lua b/plugins/muc/name.lib.lua
index d9bfc4cf..18400e92 100644
--- a/plugins/muc/name.lib.lua
+++ b/plugins/muc/name.lib.lua
@@ -30,8 +30,8 @@ module:hook("muc-config-form", function(event)
name = "muc#roomconfig_roomname";
type = "text-single";
label = "Name";
- value = get_name(event.room) or "";
});
+ event.formdata["muc#roomconfig_roomname"] = get_description(event.room) or "";
end);
module:hook("muc-config-submitted/muc#roomconfig_roomname", function(event)