Commit 119555bd authored by mercury233's avatar mercury233

fix return

parent 798f67cf
...@@ -6,6 +6,7 @@ password.json ...@@ -6,6 +6,7 @@ password.json
config.*.json config.*.json
ygopro ygopro
windbot
/node_modules/ /node_modules/
!/node_modules/struct/ !/node_modules/struct/
......
...@@ -744,7 +744,8 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)-> ...@@ -744,7 +744,8 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
msg: 1 msg: 1
code: 2 code: 2
} }
client.end()), 500 client.end()
return), 500
else if info.pass[0...2].toUpperCase()=="R#" and settings.modules.enable_cloud_replay else if info.pass[0...2].toUpperCase()=="R#" and settings.modules.enable_cloud_replay
replay_id=info.pass.split("#")[1] replay_id=info.pass.split("#")[1]
...@@ -972,6 +973,7 @@ ygopro.stoc_follow 'JOIN_GAME', false, (buffer, info, client, server)-> ...@@ -972,6 +973,7 @@ ygopro.stoc_follow 'JOIN_GAME', false, (buffer, info, client, server)->
room=ROOM_all[client.rid] room=ROOM_all[client.rid]
return unless room and settings.modules.enable_cloud_replay return unless room and settings.modules.enable_cloud_replay
room.recorder_buffers.push data room.recorder_buffers.push data
return
recorder.on 'error', (error)-> recorder.on 'error', (error)->
return return
...@@ -1176,6 +1178,8 @@ if settings.modules.mycard_auth and process.env.MYCARD_AUTH_DATABASE ...@@ -1176,6 +1178,8 @@ if settings.modules.mycard_auth and process.env.MYCARD_AUTH_DATABASE
for row in result.rows for row in result.rows
users_cache[row.username] = row.id users_cache[row.username] = row.id
console.log("users loaded", _.keys(users_cache).length) console.log("users loaded", _.keys(users_cache).length)
return
return
ygopro.stoc_follow 'DUEL_START', false, (buffer, info, client, server)-> ygopro.stoc_follow 'DUEL_START', false, (buffer, info, client, server)->
room=ROOM_all[client.rid] room=ROOM_all[client.rid]
......
...@@ -931,7 +931,7 @@ ...@@ -931,7 +931,7 @@
msg: 1, msg: 1,
code: 2 code: 2
}); });
return client.end(); client.end();
}), 500); }), 500);
} else if (info.pass.slice(0, 2).toUpperCase() === "R#" && settings.modules.enable_cloud_replay) { } else if (info.pass.slice(0, 2).toUpperCase() === "R#" && settings.modules.enable_cloud_replay) {
replay_id = info.pass.split("#")[1]; replay_id = info.pass.split("#")[1];
...@@ -1172,7 +1172,7 @@ ...@@ -1172,7 +1172,7 @@
if (!(room && settings.modules.enable_cloud_replay)) { if (!(room && settings.modules.enable_cloud_replay)) {
return; return;
} }
return room.recorder_buffers.push(data); room.recorder_buffers.push(data);
}); });
recorder.on('error', function(error) {}); recorder.on('error', function(error) {});
} }
...@@ -1431,7 +1431,7 @@ ...@@ -1431,7 +1431,7 @@
if (error) { if (error) {
throw error; throw error;
} }
return client.query('SELECT username, id from users', function(error, result) { client.query('SELECT username, id from users', function(error, result) {
var k, len, ref, row; var k, len, ref, row;
if (error) { if (error) {
throw error; throw error;
...@@ -1442,7 +1442,7 @@ ...@@ -1442,7 +1442,7 @@
row = ref[k]; row = ref[k];
users_cache[row.username] = row.id; users_cache[row.username] = row.id;
} }
return console.log("users loaded", _.keys(users_cache).length); console.log("users loaded", _.keys(users_cache).length);
}); });
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment