Diff

plugins/muc/muc.lib.lua @ 8888:cbcac5b9b7ce

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Fri, 08 Jun 2018 16:15:32 +0200
parent 8865:2a8bbfcb6868
parent 8887:c47f220580fd
child 8891:d9b7db6f140f
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Fri Jun 08 15:27:13 2018 +0200
+++ b/plugins/muc/muc.lib.lua	Fri Jun 08 16:15:32 2018 +0200
@@ -353,11 +353,7 @@
 end);
 
 function room_mt:get_disco_items(stanza)
-	local reply = st.reply(stanza):query("http://jabber.org/protocol/disco#items");
-	for room_jid in self:each_occupant() do
-		reply:tag("item", {jid = room_jid, name = room_jid:match("/(.*)")}):up();
-	end
-	return reply;
+	return st.reply(stanza):query("http://jabber.org/protocol/disco#items");
 end
 
 function room_mt:handle_kickable(origin, stanza) -- luacheck: ignore 212