aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyntaxNyah <235356625+SyntaxNyah@users.noreply.github.com>2026-04-03 10:33:10 +0100
committerSyntaxNyah <235356625+SyntaxNyah@users.noreply.github.com>2026-04-03 10:33:10 +0100
commit401d99867d1c49eae46ed325a4c4f0be6fb9b2e7 (patch)
treedcbd74d56ecbeeb2af9f80299df6f1dc7595ec7d
parent16915182af514e379c515e595709e043c393a3b9 (diff)
Use nameplate/showname args for music log instead of manual string construction
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--webAO/packets/handlers/handleMC.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/webAO/packets/handlers/handleMC.ts b/webAO/packets/handlers/handleMC.ts
index 036dc2f..187a9cd 100644
--- a/webAO/packets/handlers/handleMC.ts
+++ b/webAO/packets/handlers/handleMC.ts
@@ -39,10 +39,9 @@ export const handleMC = (args: string[]) => {
if (charID >= 0) {
musicname = client.chars[charID].name;
- const speaker = showname ? "" : `${musicname} `;
- appendICLog(`${speaker}changed music to ${track} ${looptext}`,showname);
+ appendICLog(`changed music to ${track} ${looptext}`, showname, musicname);
} else {
- appendICLog(`The music was changed to ${track} ${looptext}`,showname);
+ appendICLog(`The music was changed to ${track} ${looptext}`, showname);
}
document.getElementById("client_trackstatustext")!.innerText = track;