diff options
author | OpSimple <35542206+OpSimple@users.noreply.github.com> | 2018-06-01 20:17:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 20:17:27 +0200 |
commit | 1d283f50300d88e7ac1761f663deb792833b81fd (patch) | |
tree | 3517a08cf3ab1a6adc81f3eadeff476b9dc931a9 /server | |
parent | Solved uneeded variable creation (diff) | |
download | hackchat-1d283f50300d88e7ac1761f663deb792833b81fd.tar.gz hackchat-1d283f50300d88e7ac1761f663deb792833b81fd.zip |
Array checking made constructor safe
Diffstat (limited to 'server')
-rw-r--r-- | server/src/commands/mod/dumb.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/commands/mod/dumb.js b/server/src/commands/mod/dumb.js index ac2d995..ef2c5b2 100644 --- a/server/src/commands/mod/dumb.js +++ b/server/src/commands/mod/dumb.js @@ -43,7 +43,7 @@ exports.run = async (core, server, socket, data) => { dumb:true } - if(data.allies && data.allies.constructor === Array){ + if(data.allies && Array.isArray(data.allies)){ record.allies = data.allies; } |