aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/mod
diff options
context:
space:
mode:
authorOpSimple <35542206+OpSimple@users.noreply.github.com>2018-06-01 20:17:27 +0200
committerGitHub <noreply@github.com>2018-06-01 20:17:27 +0200
commit1d283f50300d88e7ac1761f663deb792833b81fd (patch)
tree3517a08cf3ab1a6adc81f3eadeff476b9dc931a9 /server/src/commands/mod
parentSolved uneeded variable creation (diff)
downloadhackchat-1d283f50300d88e7ac1761f663deb792833b81fd.tar.gz
hackchat-1d283f50300d88e7ac1761f663deb792833b81fd.zip
Array checking made constructor safe
Diffstat (limited to 'server/src/commands/mod')
-rw-r--r--server/src/commands/mod/dumb.js2
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;
}