comparison 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
comparison
equal deleted inserted replaced
3973:df6227e288e5 3975:d1bc50890343
48 should_save = room:set_moderated(config.moderated) or should_save; 48 should_save = room:set_moderated(config.moderated) or should_save;
49 end 49 end
50 if config.persistent ~= nil then 50 if config.persistent ~= nil then
51 should_save = room:set_persistent(config.persistent) or should_save; 51 should_save = room:set_persistent(config.persistent) or should_save;
52 end 52 end
53 if config.presence_broadcast ~= nil then
54 should_save = room:set_presence_broadcast(config.presence_broadcast) or should_save;
55 end
53 if config.public ~= nil then 56 if config.public ~= nil then
54 should_save = room:set_hidden(not config.public) or should_save; 57 should_save = room:set_hidden(not config.public) or should_save;
55 end 58 end
56 if config.public_jids ~= nil then 59 if config.public_jids ~= nil then
57 should_save = 60 should_save =