diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-08 16:15:32 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-08 16:15:32 +0200 |
commit | fd873fa69344b42bdd648ea6115f1856ca738eb1 (patch) | |
tree | f9ef6854b63e7638dee3dd6ec46d6301d009494a /plugins/muc | |
parent | fb4b9afe24bf079e66f1aa9870fec02c34a5c6c7 (diff) | |
parent | 1b392befb7610cd3286312a01c9bef649ec87fc8 (diff) | |
download | prosody-fd873fa69344b42bdd648ea6115f1856ca738eb1.tar.gz prosody-fd873fa69344b42bdd648ea6115f1856ca738eb1.zip |
Merge 0.10->trunk
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/muc.lib.lua | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 3e811f6b..65772375 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -353,11 +353,7 @@ module:hook("muc-disco#info", function(event) 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 |