From 21eeadecc7c94a07ea1ebdb1666dd40fa2ea8a9d Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 13 Oct 2021 10:04:11 +0100 Subject: ejabberd2prosody: Don't import disabled or empty passwords --- tools/ejabberd2prosody.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/ejabberd2prosody.lua b/tools/ejabberd2prosody.lua index 8b95aaef..4d03a704 100755 --- a/tools/ejabberd2prosody.lua +++ b/tools/ejabberd2prosody.lua @@ -193,7 +193,9 @@ function muc_room(node, host, properties) end store._data.name = properties.title; store._data.description = properties.description; - store._data.password = properties.password; + if properties.password_protected ~= false and properties.password ~= "" then + store._data.password = properties.password; + end store._data.moderated = (properties.moderated == "true") or nil; store._data.members_only = (properties.members_only == "true") or nil; store._data.persistent = (properties.persistent == "true") or nil; -- cgit v1.2.3