Commit 3da047c8 authored by nanahira's avatar nanahira

js

parent d585c032
...@@ -1318,12 +1318,8 @@ ...@@ -1318,12 +1318,8 @@
} else if (name.slice(0, 3) === 'AI#') { } else if (name.slice(0, 3) === 'AI#') {
this.hostinfo.rule = 2; this.hostinfo.rule = 2;
this.hostinfo.lflist = -1; this.hostinfo.lflist = -1;
<<<<<<< HEAD
this.hostinfo.time_limit = 0; this.hostinfo.time_limit = 0;
this.hostinfo.no_check_deck = true; this.hostinfo.no_check_deck = true;
=======
this.hostinfo.time_limit = 999;
>>>>>>> mc
} else if ((param = name.match(/^(\d)(\d)(T|F)(T|F)(T|F)(\d+),(\d+),(\d+)/i))) { } else if ((param = name.match(/^(\d)(\d)(T|F)(T|F)(T|F)(\d+),(\d+),(\d+)/i))) {
this.hostinfo.rule = parseInt(param[1]); this.hostinfo.rule = parseInt(param[1]);
this.hostinfo.mode = parseInt(param[2]); this.hostinfo.mode = parseInt(param[2]);
...@@ -4543,15 +4539,9 @@ ...@@ -4543,15 +4539,9 @@
roomname: pass_validated ? room.name : room.name.split('$', 2)[0], roomname: pass_validated ? room.name : room.name.split('$', 2)[0],
roommode: room.hostinfo.mode, roommode: room.hostinfo.mode,
needpass: (room.name.indexOf('$') !== -1).toString(), needpass: (room.name.indexOf('$') !== -1).toString(),
<<<<<<< HEAD users: _.sortBy((function() {
users: (function() {
var len3, n, ref3, results1; var len3, n, ref3, results1;
ref3 = room.players; ref3 = room.players;
=======
users: _.sortBy((function() {
var len3, n, ref2, results1;
ref2 = room.players;
>>>>>>> mc
results1 = []; results1 = [];
for (n = 0, len3 = ref3.length; n < len3; n++) { for (n = 0, len3 = ref3.length; n < len3; n++) {
player = ref3[n]; player = ref3[n];
...@@ -4765,15 +4755,9 @@ ...@@ -4765,15 +4755,9 @@
response.end(addCallback(u.query.callback, "['ban ok', '" + u.query.ban + "']")); response.end(addCallback(u.query.callback, "['ban ok', '" + u.query.ban + "']"));
} else if (u.query.kick) { } else if (u.query.kick) {
kick_room_found = false; kick_room_found = false;
<<<<<<< HEAD
for (p = 0, len5 = ROOM_all.length; p < len5; p++) { for (p = 0, len5 = ROOM_all.length; p < len5; p++) {
room = ROOM_all[p]; room = ROOM_all[p];
if (!(room && room.established && (u.query.kick === "all" || u.query.kick === room.port.toString() || u.query.kick === room.name))) {
=======
for (o = 0, len4 = ROOM_all.length; o < len4; o++) {
room = ROOM_all[o];
if (!(room && room.established && (u.query.kick === "all" || u.query.kick === room.process_pid.toString() || u.query.kick === room.name))) { if (!(room && room.established && (u.query.kick === "all" || u.query.kick === room.process_pid.toString() || u.query.kick === room.name))) {
>>>>>>> mc
continue; continue;
} }
kick_room_found = true; kick_room_found = true;
...@@ -4793,15 +4777,9 @@ ...@@ -4793,15 +4777,9 @@
} }
} else if (u.query.death) { } else if (u.query.death) {
death_room_found = false; death_room_found = false;
<<<<<<< HEAD
for (q = 0, len6 = ROOM_all.length; q < len6; q++) { for (q = 0, len6 = ROOM_all.length; q < len6; q++) {
room = ROOM_all[q]; room = ROOM_all[q];
if (!(room && room.established && room.started && !room.death && (u.query.death === "all" || u.query.death === room.port.toString() || u.query.death === room.name))) {
=======
for (p = 0, len5 = ROOM_all.length; p < len5; p++) {
room = ROOM_all[p];
if (!(room && room.established && room.started && !room.death && (u.query.death === "all" || u.query.death === room.process_pid.toString() || u.query.death === room.name))) { if (!(room && room.established && room.started && !room.death && (u.query.death === "all" || u.query.death === room.process_pid.toString() || u.query.death === room.name))) {
>>>>>>> mc
continue; continue;
} }
death_room_found = true; death_room_found = true;
...@@ -4861,15 +4839,9 @@ ...@@ -4861,15 +4839,9 @@
} }
} else if (u.query.deathcancel) { } else if (u.query.deathcancel) {
death_room_found = false; death_room_found = false;
<<<<<<< HEAD
for (r = 0, len7 = ROOM_all.length; r < len7; r++) { for (r = 0, len7 = ROOM_all.length; r < len7; r++) {
room = ROOM_all[r]; room = ROOM_all[r];
if (!(room && room.established && room.started && room.death && (u.query.deathcancel === "all" || u.query.deathcancel === room.port.toString()))) {
=======
for (q = 0, len6 = ROOM_all.length; q < len6; q++) {
room = ROOM_all[q];
if (!(room && room.established && room.started && room.death && (u.query.deathcancel === "all" || u.query.deathcancel === room.process_pid.toString()))) { if (!(room && room.established && room.started && room.death && (u.query.deathcancel === "all" || u.query.deathcancel === room.process_pid.toString()))) {
>>>>>>> mc
continue; continue;
} }
death_room_found = true; death_room_found = true;
......
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