Diff

plugins/muc/mod_muc.lua @ 3262:330010ef078f

MUC: Updated code to use :set_hidden() and :is_hidden().
author Waqas Hussain <waqas20@gmail.com>
date Sun, 13 Jun 2010 21:58:46 +0500
parent 2925:692b3c6c5bd2
child 3330:bdc325ce9fbc
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Sun Jun 13 21:54:47 2010 +0500
+++ b/plugins/muc/mod_muc.lua	Sun Jun 13 21:58:46 2010 +0500
@@ -78,7 +78,7 @@
 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