aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/vcNarrator.tsx
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-31 02:35:54 +0200
committerV <vendicated@riseup.net>2023-05-31 19:14:14 +0200
commit99d8b8b75f828b93181ff28ef66bdc52e952d5fb (patch)
treee4d3e119cde8aa77479240c78b43bebbaa53e4dc /src/plugins/vcNarrator.tsx
parent503d49d295f1e1bfbcdd890e1abc345f326bf95c (diff)
downloadVencord-99d8b8b75f828b93181ff28ef66bdc52e952d5fb.tar.gz
Vencord-99d8b8b75f828b93181ff28ef66bdc52e952d5fb.tar.bz2
Vencord-99d8b8b75f828b93181ff28ef66bdc52e952d5fb.zip
VcNarrator: Fix always saying 'someone'
Diffstat (limited to 'src/plugins/vcNarrator.tsx')
-rw-r--r--src/plugins/vcNarrator.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/vcNarrator.tsx b/src/plugins/vcNarrator.tsx
index caca70d..62a6b43 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");
}