aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-13 22:00:08 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-13 22:00:08 +0500
commit387abd6b12fc1bde2f56a45e1c488c688e558446 (patch)
tree2dbaf9af34a3659003bea2c6f33eda501fc050d4 /plugins/muc/muc.lib.lua
parente5779b6d702f612c3af74721c177a971051a967f (diff)
downloadprosody-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/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 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)