VcNarrator: Fix always saying 'someone'

This commit is contained in:
V 2023-05-31 02:35:54 +02:00
parent 503d49d295
commit 99d8b8b75f
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -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");
}