diff options
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/subject.lib.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/muc/subject.lib.lua b/plugins/muc/subject.lib.lua index 200b262d..3bedc69c 100644 --- a/plugins/muc/subject.lib.lua +++ b/plugins/muc/subject.lib.lua @@ -28,6 +28,14 @@ local function set_changesubject(room, changesubject) return true; end +module:hook("muc-disco#info", function (event) + table.insert(event.form, { + name = "muc#roominfo_changesubject"; + type = "boolean"; + }); + event.formdata["muc#roominfo_changesubject"] = get_changesubject(event.room); +end); + module:hook("muc-config-form", function(event) table.insert(event.form, { name = "muc#roomconfig_changesubject"; |