Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 3253:23a30abcc76e
MUC: Added disco#info features to advertise room's moderation status (muc_moderated or muc_unmoderated).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 13 Jun 2010 20:29:27 +0500 |
parent | 3252:22062c50eabe |
child | 3254:a01c6411fdfb |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Sun Jun 13 20:24:55 2010 +0500 +++ b/plugins/muc/muc.lib.lua Sun Jun 13 20:29:27 2010 +0500 @@ -210,6 +210,7 @@ :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)