Commit c6b37a09 authored by 神楽坂玲奈's avatar 神楽坂玲奈 Committed by Ma

fix

parent c2539437
// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.9.3
(function() {
var Room, _, bunyan, get_memory_usage, log, moment, roomlist, settings, spawn, spawnSync, ygopro;
......@@ -187,7 +187,7 @@
};
function Room(name, hostinfo) {
var draw_count, error1, lflist, param, rule, start_hand, start_lp, time_limit;
var draw_count, lflist, param, rule, start_hand, start_lp, time_limit;
this.hostinfo = hostinfo;
this.name = name;
this.alive = true;
......@@ -412,7 +412,7 @@
});
};
})(this));
} catch (error1) {
} catch (_error) {
this.error = "建立房间失败,请重试";
}
}
......
......@@ -333,6 +333,15 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
buffer = new Buffer(info.pass[0...8], 'base64')
if buffer.length != 6
ygopro.stoc_send_chat(client,'主机密码不正确 (Invalid Payload Length)', 11)
ygopro.stoc_send client, 'ERROR_MSG',{
msg: 1
code: 2
}
client.end()
return
check = (buf)->
checksum = 0
for i in [0...buf.length]
......
......@@ -360,6 +360,15 @@
return;
}
buffer = new Buffer(info.pass.slice(0, 8), 'base64');
if (buffer.length !== 6) {
ygopro.stoc_send_chat(client, '主机密码不正确 (Invalid Payload Length)', 11);
ygopro.stoc_send(client, 'ERROR_MSG', {
msg: 1,
code: 2
});
client.end();
return;
}
check = function(buf) {
var checksum, i, k, ref;
checksum = 0;
......
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