aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyntaxNyah <235356625+SyntaxNyah@users.noreply.github.com>2026-04-03 09:42:26 +0100
committerSyntaxNyah <235356625+SyntaxNyah@users.noreply.github.com>2026-04-03 09:42:26 +0100
commit16915182af514e379c515e595709e043c393a3b9 (patch)
tree40682c406ddf8a19f69d7f49cdaa8de9eddf0219
parent5789a0b3c238b7a569941a092ed00362403519f2 (diff)
Hide character name in music log when showname is set
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--webAO/packets/handlers/handleMC.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/webAO/packets/handlers/handleMC.ts b/webAO/packets/handlers/handleMC.ts
index 44237ea..036dc2f 100644
--- a/webAO/packets/handlers/handleMC.ts
+++ b/webAO/packets/handlers/handleMC.ts
@@ -39,7 +39,8 @@ export const handleMC = (args: string[]) => {
if (charID >= 0) {
musicname = client.chars[charID].name;
- appendICLog(`${musicname} changed music to ${track} ${looptext}`,showname);
+ const speaker = showname ? "" : `${musicname} `;
+ appendICLog(`${speaker}changed music to ${track} ${looptext}`,showname);
} else {
appendICLog(`The music was changed to ${track} ${looptext}`,showname);
}