Diff

plugins/muc/subject.lib.lua @ 8884:a387e00471d6

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.
author Kim Alvefur <zash@zash.se>
date Thu, 07 Jun 2018 18:53:30 +0200
parent 8850:26f1a49fa9c0
child 8928:d41f8ce67c8e
line wrap: on
line diff
--- 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);