Mercurial > prosody-modules
diff mod_muc_defaults/mod_muc_defaults.lua @ 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 | da2d58208574 |
children | a81516906822 |
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