diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-06-13 20:29:27 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-06-13 20:29:27 +0500 |
commit | 209b90ef46b758f44d17e3770f0ee5064c38007f (patch) | |
tree | eaab3857f828b8bfa646ff993005cd79ca63e435 /plugins/muc | |
parent | 6d947ad59f0cd9ac0f7ba3bfd50476fc1325c5f1 (diff) | |
download | prosody-209b90ef46b758f44d17e3770f0ee5064c38007f.tar.gz prosody-209b90ef46b758f44d17e3770f0ee5064c38007f.zip |
MUC: Added disco#info features to advertise room's moderation status (muc_moderated or muc_unmoderated).
Diffstat (limited to 'plugins/muc')
-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 9ca54ad6..fe56d2c2 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -210,6 +210,7 @@ function room_mt:get_disco_info(stanza) :tag("identity", {category="conference", type="text"}):up() :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() ; end function room_mt:get_disco_items(stanza) |