From 209b90ef46b758f44d17e3770f0ee5064c38007f Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 13 Jun 2010 20:29:27 +0500 Subject: MUC: Added disco#info features to advertise room's moderation status (muc_moderated or muc_unmoderated). --- plugins/muc/muc.lib.lua | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3