aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-13 21:58:46 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-13 21:58:46 +0500
commite5779b6d702f612c3af74721c177a971051a967f (patch)
tree03ec0aadaeb39fac1d8e6cc39e0548bd8a15e06d /plugins/muc/mod_muc.lua
parent3766587466a76c53265f07bc34223834072adbe0 (diff)
downloadprosody-e5779b6d702f612c3af74721c177a971051a967f.tar.gz
prosody-e5779b6d702f612c3af74721c177a971051a967f.zip
MUC: Updated code to use :set_hidden() and :is_hidden().
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index de23aebb..c0945daa 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -78,7 +78,7 @@ end
local function get_disco_items(stanza)
local reply = st.iq({type='result', id=stanza.attr.id, from=muc_host, to=stanza.attr.from}):query("http://jabber.org/protocol/disco#items");
for jid, room in pairs(rooms) do
- if not room._data.hidden then
+ if not room:is_hidden() then
reply:tag("item", {jid=jid, name=jid}):up();
end
end