Changeset

3257:fae054e15e03

MUC: Added disco#info features to advertise room's members-only status (muc_membersonly or muc_open).
author Waqas Hussain <waqas20@gmail.com>
date Sun, 13 Jun 2010 20:55:07 +0500
parents 3256:d96172f78ec2
children 3258:bc07564bec6d
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)