Software /
code /
prosody-modules
Changeset
3975:d1bc50890343
muc_defaults: Add support for the presence_broadcast setting
author | JC Brand <jc@opkode.com> |
---|---|
date | Fri, 17 Apr 2020 17:19:17 +0200 |
parents | 3973:df6227e288e5 |
children | 3976:3e4904cd7021 |
files | mod_muc_defaults/mod_muc_defaults.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_muc_defaults/mod_muc_defaults.lua Mon Apr 13 21:53:01 2020 +0200 +++ b/mod_muc_defaults/mod_muc_defaults.lua Fri Apr 17 17:19:17 2020 +0200 @@ -50,6 +50,9 @@ if config.persistent ~= nil then should_save = room:set_persistent(config.persistent) or should_save; end + if config.presence_broadcast ~= nil then + should_save = room:set_presence_broadcast(config.presence_broadcast) or should_save; + end if config.public ~= nil then should_save = room:set_hidden(not config.public) or should_save; end