MUC: Roll back parts of 50b9a7e86de9 that were not in the disco#info event
authorKim Alvefur <zash@zash.se>
Thu, 4 Feb 2016 08:18:53 +0000 (09:18 +0100)
committerKim Alvefur <zash@zash.se>
Thu, 4 Feb 2016 08:18:53 +0000 (09:18 +0100)
plugins/muc/description.lib.lua
plugins/muc/name.lib.lua

index d94bc3f1a6314fd04d27ced11752da7fc16ac46e..c4b1bd093c7df86d1e060e419ae9e16426b5dd84 100644 (file)
@@ -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);
index 302c29924949d569a492f6a3f00ff1b3136ccc6c..d9bfc4cf0f0a2315ca447ef7daaaa9c4ecf9d5de 100644 (file)
@@ -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_name(event.room) or "";
 end);
 
 module:hook("muc-config-submitted/muc#roomconfig_roomname", function(event)