From 99d8b8b75f828b93181ff28ef66bdc52e952d5fb Mon Sep 17 00:00:00 2001 From: V Date: Wed, 31 May 2023 02:35:54 +0200 Subject: [PATCH] VcNarrator: Fix always saying 'someone' --- src/plugins/vcNarrator.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/vcNarrator.tsx b/src/plugins/vcNarrator.tsx index caca70df5..62a6b43ca 100644 --- a/src/plugins/vcNarrator.tsx +++ b/src/plugins/vcNarrator.tsx @@ -71,7 +71,7 @@ function clean(str: string) { function formatText(str: string, user: string, channel: string) { return str - .replaceAll("{{USER}}", clean(user) || user ? "Someone" : "") + .replaceAll("{{USER}}", clean(user) || (user ? "Someone" : "")) .replaceAll("{{CHANNEL}}", clean(channel) || "channel"); }