diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-06-13 22:00:08 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-06-13 22:00:08 +0500 |
commit | 387abd6b12fc1bde2f56a45e1c488c688e558446 (patch) | |
tree | 2dbaf9af34a3659003bea2c6f33eda501fc050d4 /plugins | |
parent | e5779b6d702f612c3af74721c177a971051a967f (diff) | |
download | prosody-387abd6b12fc1bde2f56a45e1c488c688e558446.tar.gz prosody-387abd6b12fc1bde2f56a45e1c488c688e558446.zip |
MUC: Added disco#info features to advertise room's public status (muc_public or muc_hidden).
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/muc/muc.lib.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 87353ad1..05de43cc 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -215,6 +215,7 @@ function room_mt:get_disco_info(stanza) :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) |