Software /
code /
prosody
Comparison
plugins/muc/presence_broadcast.lib.lua @ 10687:8c2c5b4fde32
MUC: Support for broadcasting unavailable presence for affiliated offline users
Activated when muc#roomconfig_presencebroadcast includes the "none" role.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 12 Mar 2020 16:01:31 +0000 |
parent | 10685:98f21a155737 |
child | 12977:74b9e05af71e |
comparison
equal
deleted
inserted
replaced
10686:ac3ec4f2b124 | 10687:8c2c5b4fde32 |
---|---|
7 -- COPYING file in the source package for more information. | 7 -- COPYING file in the source package for more information. |
8 -- | 8 -- |
9 | 9 |
10 local st = require "util.stanza"; | 10 local st = require "util.stanza"; |
11 | 11 |
12 local valid_roles = { "visitor", "participant", "moderator" }; | 12 local valid_roles = { "none", "visitor", "participant", "moderator" }; |
13 local default_broadcast = { | 13 local default_broadcast = { |
14 visitor = true; | 14 visitor = true; |
15 participant = true; | 15 participant = true; |
16 moderator = true; | 16 moderator = true; |
17 }; | 17 }; |