Changeset

3263:4973b737d4c7

MUC: Added disco#info features to advertise room's public status (muc_public or muc_hidden).
author Waqas Hussain <waqas20@gmail.com>
date Sun, 13 Jun 2010 22:00:08 +0500
parents 3262:330010ef078f
children 3264:e1c787c6f86e
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 21:58:46 2010 +0500
+++ b/plugins/muc/muc.lib.lua	Sun Jun 13 22:00:08 2010 +0500
@@ -215,6 +215,7 @@
 		: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()
 		:tag("feature", {var=self:is_persistent() and "muc_persistent" or "muc_temporary"}):up()
+		:tag("feature", {var=self:is_hidden() and "muc_hidden" or "muc_public"}):up()
 	;
 end
 function room_mt:get_disco_items(stanza)