aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-13 20:55:07 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-13 20:55:07 +0500
commita65e7c76579f35e405405593bc3e881740f682c9 (patch)
tree8269a2b15e6135dbd4cd7ef4120672196be7bae2 /plugins
parent90093c2b5523c36009abf00a45e4365359b3a7c1 (diff)
downloadprosody-a65e7c76579f35e405405593bc3e881740f682c9.tar.gz
prosody-a65e7c76579f35e405405593bc3e881740f682c9.zip
MUC: Added disco#info features to advertise room's members-only status (muc_membersonly or muc_open).
Diffstat (limited to 'plugins')
-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 2f7800b4..b1e650b8 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -213,6 +213,7 @@ function room_mt:get_disco_info(stanza)
:tag("feature", {var="http://jabber.org/protocol/muc"}):up()
:tag("feature", {var=self:get_password() and "muc_passwordprotected" or "muc_unsecured"}):up()
: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()
;
end
function room_mt:get_disco_items(stanza)