Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 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 |
parent | 3263:4973b737d4c7 |
child | 3279:8b0a4a7d2c6e |
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)