From 56de0aae0198d286a0a82b6a9685474bdf4fc67c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 8 Jun 2018 16:02:57 +0200 Subject: Backed out changeset b8c3dbf76a2e (fixes #1162) This is not required by the XEP and has privacy issues. --- plugins/muc/muc.lib.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 5d8c6df5..8257b0b7 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -235,11 +235,7 @@ function room_mt:get_disco_info(stanza) return reply; end function room_mt:get_disco_items(stanza) - local reply = st.reply(stanza):query("http://jabber.org/protocol/disco#items"); - for room_jid in pairs(self._occupants) 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:set_subject(current_nick, subject) if subject == "" then subject = nil; end -- cgit v1.2.3