From 44f4fd080610d36a96b8f527aa64d6e64fde7a0b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 7 Jun 2018 18:53:30 +0200 Subject: Backed out changeset cd186331ab1f (subject in disco#info) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Makes more sense if you must join the room to see the subject, since there’s a separate public description field. --- plugins/muc/subject.lib.lua | 7 ------- 1 file changed, 7 deletions(-) (limited to 'plugins') diff --git a/plugins/muc/subject.lib.lua b/plugins/muc/subject.lib.lua index b842e777..14091d4e 100644 --- a/plugins/muc/subject.lib.lua +++ b/plugins/muc/subject.lib.lua @@ -73,13 +73,6 @@ local function set_subject(room, from, subject) return true; end -module:hook("muc-disco#info", function (event) - table.insert(event.form, { - name = "muc#roominfo_subject"; - }); - event.formdata["muc#roominfo_subject"] = select(2, get_subject(event.room)); -end); - -- Send subject to joining user module:hook("muc-occupant-session-new", function(event) send_subject(event.room, event.stanza.attr.from); -- cgit v1.2.3