aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-13 21:43:53 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-13 21:43:53 +0500
commita06b095da6e308b19d8935f3b0dd1dc8eb1e70f1 (patch)
treeff13b79fa3bea57956d64727b47c78717e720837 /plugins/muc/muc.lib.lua
parent1d9c7a936132c1b810f0d80a275b19b0d529eb3a (diff)
downloadprosody-a06b095da6e308b19d8935f3b0dd1dc8eb1e70f1.tar.gz
prosody-a06b095da6e308b19d8935f3b0dd1dc8eb1e70f1.zip
MUC: Added disco#info features to advertise room's persistence status (muc_persistent or muc_temporary).
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 52bcd489..67b6dbd7 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -214,6 +214,7 @@ function room_mt:get_disco_info(stanza)
: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)