diff options
| author | stonedDiscord <stoned@derpymail.org> | 2020-11-09 19:26:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-09 19:26:02 +0100 |
| commit | 05d87429a4e39affe31b788200369b32a36aca1d (patch) | |
| tree | 2b90fb376b7e0fc077ed849ac95b23fa358766e5 | |
| parent | 374a2eef333fbca381747dbb5863c283d20d195a (diff) | |
neat or trick
Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
| -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; |
