Software / code / prosody-modules
Comparison
mod_muc_http_defaults/mod_muc_http_defaults.lua @ 5339:6d99ddd99694
mod_muc_http_defaults: Use the new set_subject API. Thanks John Livingston
| author | Maxime “pep” Buquet <pep@bouah.net> |
|---|---|
| date | Tue, 11 Apr 2023 15:59:35 +0200 |
| parent | 4455:89e54247ade6 |
comparison
equal
deleted
inserted
replaced
| 5338:03044a6f5f4c | 5339:6d99ddd99694 |
|---|---|
| 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 |