comparison mod_muc_http_defaults/mod_muc_http_defaults.lua @ 5650:0eb2d5ea2428

merge
author Stephen Paul Weber <singpolyma@singpolyma.net>
date Sat, 06 May 2023 19:40:23 -0500
parents 6d99ddd99694
children
comparison
equal deleted inserted replaced
5649:2c69577b28c2 5650:0eb2d5ea2428
87 -- TODO reject invalid fields instead of ignoring them 87 -- TODO reject invalid fields instead of ignoring them
88 if type(config.name) == "string" then room:set_name(config.name); end 88 if type(config.name) == "string" then room:set_name(config.name); end
89 if type(config.description) == "string" then room:set_description(config.description); end 89 if type(config.description) == "string" then room:set_description(config.description); end
90 if type(config.language) == "string" then room:set_language(config.language); end 90 if type(config.language) == "string" then room:set_language(config.language); end
91 if type(config.password) == "string" then room:set_password(config.password); end 91 if type(config.password) == "string" then room:set_password(config.password); end
92 if type(config.subject) == "string" then room:set_subject(config.subject); end 92 if type(config.subject) == "string" then room:set_subject(room.jid, config.subject); end
93 93
94 if type(config.public) == "boolean" then room:set_public(config.public); end 94 if type(config.public) == "boolean" then room:set_public(config.public); end
95 if type(config.members_only) == "boolean" then room:set_members_only(config.members_only); end 95 if type(config.members_only) == "boolean" then room:set_members_only(config.members_only); end
96 if type(config.allow_member_invites) == "boolean" then room:set_allow_member_invites(config.allow_member_invites); end 96 if type(config.allow_member_invites) == "boolean" then room:set_allow_member_invites(config.allow_member_invites); end
97 if type(config.moderated) == "boolean" then room:set_moderated(config.moderated); end 97 if type(config.moderated) == "boolean" then room:set_moderated(config.moderated); end