diff options
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/webAO/client.js b/webAO/client.js index eb27979..f160b53 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -734,9 +734,9 @@ class Client extends EventEmitter { handleMC(args) { const track = prepChat(args[1]); let charID = Number(args[2]); - const showname = args[3] ? args[3] : ""; - const looping = args[4] ? Boolean(args[4]) : false; - const channel = args[5] ? Number(args[5]) : 0; + const showname = args[3] || ""; + const looping = Boolean(args[4]); + const channel = Number(args[5]) || 0; const music = viewport.music[channel]; let musicname; @@ -3083,4 +3083,4 @@ export function toggleShout(shout) { selectedShout = shout; } } -window.toggleShout = toggleShout;
\ No newline at end of file +window.toggleShout = toggleShout; |
