Commit 5669c6ea authored by IamIpanda's avatar IamIpanda

Change extra mode judge position for forcing modes

parent 1f58b1b5
Pipeline #42329 failed with stages
in 3 minutes and 54 seconds
...@@ -1393,9 +1393,6 @@ class Room ...@@ -1393,9 +1393,6 @@ class Room
lflist = parseInt(param[3]) - 1 lflist = parseInt(param[3]) - 1
@hostinfo.lflist = lflist @hostinfo.lflist = lflist
for extra_mode_func from extra_mode_list
extra_mode_func.call this, rule
if (rule.match /(^|,|,)(NOLFLIST|NF)(,|,|$)/) if (rule.match /(^|,|,)(NOLFLIST|NF)(,|,|$)/)
@hostinfo.lflist = -1 @hostinfo.lflist = -1
...@@ -1437,6 +1434,11 @@ class Room ...@@ -1437,6 +1434,11 @@ class Room
@recover_buffers = [[], [], [], []] @recover_buffers = [[], [], [], []]
@welcome = "${recover_hint}" @welcome = "${recover_hint}"
param = name.match /(.+)#/
rule = if param then param[1].toUpperCase() else ''
for extra_mode_func from extra_mode_list
extra_mode_func.call this, rule, name
@hostinfo.replay_mode = 0 @hostinfo.replay_mode = 0
if settings.modules.tournament_mode.enabled # 0x1: Save the replays in file if settings.modules.tournament_mode.enabled # 0x1: Save the replays in file
......
...@@ -1819,9 +1819,6 @@ ...@@ -1819,9 +1819,6 @@
lflist = parseInt(param[3]) - 1; lflist = parseInt(param[3]) - 1;
this.hostinfo.lflist = lflist; this.hostinfo.lflist = lflist;
} }
for (extra_mode_func of extra_mode_list) {
extra_mode_func.call(this, rule);
}
if (rule.match(/(^|,|,)(NOLFLIST|NF)(,|,|$)/)) { if (rule.match(/(^|,|,)(NOLFLIST|NF)(,|,|$)/)) {
this.hostinfo.lflist = -1; this.hostinfo.lflist = -1;
} }
...@@ -1866,6 +1863,11 @@ ...@@ -1866,6 +1863,11 @@
this.welcome = "${recover_hint}"; this.welcome = "${recover_hint}";
} }
} }
param = name.match(/(.+)#/);
rule = param ? param[1].toUpperCase() : '';
for (extra_mode_func of extra_mode_list) {
extra_mode_func.call(this, rule, name);
}
this.hostinfo.replay_mode = 0; this.hostinfo.replay_mode = 0;
if (settings.modules.tournament_mode.enabled) { // 0x1: Save the replays in file if (settings.modules.tournament_mode.enabled) { // 0x1: Save the replays in file
this.hostinfo.replay_mode |= 0x1; this.hostinfo.replay_mode |= 0x1;
......
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