Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 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 |
parent | 3262:330010ef078f |
child | 3264:e1c787c6f86e |
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)