Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 3260:19b655a8671c
MUC: Added disco#info features to advertise room's persistence status (muc_persistent or muc_temporary).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 13 Jun 2010 21:43:53 +0500 |
parent | 3259:a5b9209efb23 |
child | 3261:fe1c93296abd |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Sun Jun 13 21:41:49 2010 +0500 +++ b/plugins/muc/muc.lib.lua Sun Jun 13 21:43:53 2010 +0500 @@ -214,6 +214,7 @@ :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() + :tag("feature", {var=self:is_persistent() and "muc_persistent" or "muc_temporary"}):up() ; end function room_mt:get_disco_items(stanza)