VcNarrator: Fix always saying 'someone'
This commit is contained in:
parent
503d49d295
commit
99d8b8b75f
|
@ -71,7 +71,7 @@ function clean(str: string) {
|
||||||
|
|
||||||
function formatText(str: string, user: string, channel: string) {
|
function formatText(str: string, user: string, channel: string) {
|
||||||
return str
|
return str
|
||||||
.replaceAll("{{USER}}", clean(user) || user ? "Someone" : "")
|
.replaceAll("{{USER}}", clean(user) || (user ? "Someone" : ""))
|
||||||
.replaceAll("{{CHANNEL}}", clean(channel) || "channel");
|
.replaceAll("{{CHANNEL}}", clean(channel) || "channel");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue