From 79de06d9664358aa74c148e7541baaa91918ce05 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 24 Jul 2022 12:10:16 +0300 Subject: [PATCH] bugfix --- src/utilities/SettingsMigrator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities/SettingsMigrator.js b/src/utilities/SettingsMigrator.js index 0508939..36bfbef 100644 --- a/src/utilities/SettingsMigrator.js +++ b/src/utilities/SettingsMigrator.js @@ -415,7 +415,7 @@ class SettingsMigrator { default: 'You were **{infraction}** {from|on} the server `{server}`, your infraction details are below.' } }; - if (privatelog.onban) settings.dminfraction.messages.BAN = moderation.onban; + if (privatelog?.onban) settings.dminfraction.messages.BAN = moderation.onban; } return settings;