# HG changeset patch # User Maxime “pep” Buquet # Date 1681221575 -7200 # Node ID 6d99ddd99694d605eb0352e2d1bed9e5b16afba5 # Parent 03044a6f5f4cfd6186861f861ba08ccd239150bb mod_muc_http_defaults: Use the new set_subject API. Thanks John Livingston diff -r 03044a6f5f4c -r 6d99ddd99694 mod_muc_http_defaults/mod_muc_http_defaults.lua --- a/mod_muc_http_defaults/mod_muc_http_defaults.lua Mon Apr 10 13:24:03 2023 +0200 +++ b/mod_muc_http_defaults/mod_muc_http_defaults.lua Tue Apr 11 15:59:35 2023 +0200 @@ -89,7 +89,7 @@ if type(config.description) == "string" then room:set_description(config.description); end if type(config.language) == "string" then room:set_language(config.language); end if type(config.password) == "string" then room:set_password(config.password); end - if type(config.subject) == "string" then room:set_subject(config.subject); end + if type(config.subject) == "string" then room:set_subject(room.jid, config.subject); end if type(config.public) == "boolean" then room:set_public(config.public); end if type(config.members_only) == "boolean" then room:set_members_only(config.members_only); end