# HG changeset patch # User Waqas Hussain # Date 1276444507 -18000 # Node ID fae054e15e034ede56734f2fd3394b8e4fc244ef # Parent d96172f78ec2830e3d4402dd69ca6c150523b0d7 MUC: Added disco#info features to advertise room's members-only status (muc_membersonly or muc_open). diff -r d96172f78ec2 -r fae054e15e03 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Sun Jun 13 20:52:37 2010 +0500 +++ b/plugins/muc/muc.lib.lua Sun Jun 13 20:55:07 2010 +0500 @@ -213,6 +213,7 @@ :tag("feature", {var="http://jabber.org/protocol/muc"}):up() :tag("feature", {var=self:get_password() and "muc_passwordprotected" or "muc_unsecured"}):up() :tag("feature", {var=self:is_moderated() and "muc_moderated" or "muc_unmoderated"}):up() + :tag("feature", {var=self:is_members_only() and "muc_membersonly" or "muc_open"}):up() ; end function room_mt:get_disco_items(stanza)