aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-08 16:02:57 +0200
committerKim Alvefur <zash@zash.se>2018-06-08 16:02:57 +0200
commit1b392befb7610cd3286312a01c9bef649ec87fc8 (patch)
treefaeeaa53e98bd118d40f237df115d9994fbaa6e2 /plugins/muc/muc.lib.lua
parentba5f71d08bb7a796a00766d9a6b739e10a0d0623 (diff)
downloadprosody-1b392befb7610cd3286312a01c9bef649ec87fc8.tar.gz
prosody-1b392befb7610cd3286312a01c9bef649ec87fc8.zip
Backed out changeset b8c3dbf76a2e (fixes #1162)
This is not required by the XEP and has privacy issues.
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua6
1 files changed, 1 insertions, 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