Changeset

3264:e1c787c6f86e

MUC: Added disco#info features to advertise room's anonymity status (muc_semianonymous or muc_nonanonymous).
author Waqas Hussain <waqas20@gmail.com>
date Sun, 13 Jun 2010 22:06:06 +0500
parents 3263:4973b737d4c7
children 3265:9374f84c6677
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 22:00:08 2010 +0500
+++ b/plugins/muc/muc.lib.lua	Sun Jun 13 22:06:06 2010 +0500
@@ -216,6 +216,7 @@
 		: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()
+		:tag("feature", {var=self._data.whois ~= "anyone" and "muc_semianonymous" or "muc_nonanonymous"}):up()
 	;
 end
 function room_mt:get_disco_items(stanza)