Sun, 13 Jun 2010 21:43:53 +0500
MUC: Added disco#info features to advertise room's persistence status (muc_persistent or muc_temporary).
plugins/muc/muc.lib.lua | file | annotate | diff | comparison | revisions |
--- 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)