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) {
|
||||
return str
|
||||
.replaceAll("{{USER}}", clean(user) || user ? "Someone" : "")
|
||||
.replaceAll("{{USER}}", clean(user) || (user ? "Someone" : ""))
|
||||
.replaceAll("{{CHANNEL}}", clean(channel) || "channel");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user