aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-13 22:06:06 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-13 22:06:06 +0500
commite24c819d438e1157f05eb1b4e6a0cb2b17e8dcfd (patch)
tree24c137332f11692c447030c59fe8e3cc3a3252f2 /plugins/muc/muc.lib.lua
parent387abd6b12fc1bde2f56a45e1c488c688e558446 (diff)
downloadprosody-e24c819d438e1157f05eb1b4e6a0cb2b17e8dcfd.tar.gz
prosody-e24c819d438e1157f05eb1b4e6a0cb2b17e8dcfd.zip
MUC: Added disco#info features to advertise room's anonymity status (muc_semianonymous or muc_nonanonymous).
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 05de43cc..08a66c4d 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -216,6 +216,7 @@ function room_mt:get_disco_info(stanza)
: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)