diff options
Diffstat (limited to 'webAO/packets/handlers/handleMC.ts')
| -rw-r--r-- | webAO/packets/handlers/handleMC.ts | 3 |
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); } |
