Changeset

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
parents 5338:03044a6f5f4c
children 5340:cd195283127f
files mod_muc_http_defaults/mod_muc_http_defaults.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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