# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1528390410 -7200
# Node ID a387e00471d6fb2ea7864ca94b04dd2448dcc4af
# Parent  3f975bbfec3be1b7edc9c20192086060f127b0e6
Backed out changeset cd186331ab1f (subject in disco#info)

Makes more sense if you must join the room to see the subject, since
there’s a separate public description field.

diff -r 3f975bbfec3b -r a387e00471d6 plugins/muc/subject.lib.lua
--- a/plugins/muc/subject.lib.lua	Wed Jun 06 22:27:40 2018 +0200
+++ b/plugins/muc/subject.lib.lua	Thu Jun 07 18:53:30 2018 +0200
@@ -73,13 +73,6 @@
 	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);