MUC: Added disco#info features to advertise room's members-only status (muc_membersonly or muc_open).
--- 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)