From 05d87429a4e39affe31b788200369b32a36aca1d Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Mon, 9 Nov 2020 19:26:02 +0100 Subject: neat or trick Co-authored-by: oldmud0 --- webAO/client.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'webAO') 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; -- cgit