|
20 | 20 | const crypto = require('crypto'); |
21 | 21 | const FS = require('./fs'); |
22 | 22 |
|
23 | | -const Matchmaker = require('./ladders-matchmaker').matchmaker; |
24 | | - |
25 | 23 | const MAX_REASON_LENGTH = 300; |
26 | 24 | const MUTE_LENGTH = 7 * 60 * 1000; |
27 | 25 | const HOURMUTE_LENGTH = 60 * 60 * 1000; |
@@ -2112,7 +2110,7 @@ exports.commands = { |
2112 | 2110 |
|
2113 | 2111 | let entry = targetUser.name + " was forced to choose a new name by " + user.name + (reason ? ": " + reason : ""); |
2114 | 2112 | this.privateModCommand("(" + entry + ")"); |
2115 | | - Matchmaker.cancelSearch(targetUser); |
| 2113 | + Ladders.matchmaker.cancelSearch(targetUser); |
2116 | 2114 | targetUser.resetName(true); |
2117 | 2115 | targetUser.send("|nametaken||" + user.name + " considers your name inappropriate" + (reason ? ": " + reason : ".")); |
2118 | 2116 | return true; |
@@ -2142,7 +2140,7 @@ exports.commands = { |
2142 | 2140 | } |
2143 | 2141 |
|
2144 | 2142 | this.globalModlog("NAMELOCK", targetUser, ` by ${user.name}${reasonText}`); |
2145 | | - Matchmaker.cancelSearch(targetUser); |
| 2143 | + Ladders.matchmaker.cancelSearch(targetUser); |
2146 | 2144 | Punishments.namelock(targetUser, null, null, reason); |
2147 | 2145 | targetUser.popup(`|modal|${user.name} has locked your name and you can't change names anymore${reasonText}`); |
2148 | 2146 | return true; |
@@ -3301,9 +3299,9 @@ exports.commands = { |
3301 | 3299 | return false; |
3302 | 3300 | } |
3303 | 3301 | } |
3304 | | - Matchmaker.searchBattle(user, target); |
| 3302 | + Ladders.matchmaker.searchBattle(user, target); |
3305 | 3303 | } else { |
3306 | | - Matchmaker.cancelSearch(user, target); |
| 3304 | + Ladders.matchmaker.cancelSearch(user, target); |
3307 | 3305 | } |
3308 | 3306 | }, |
3309 | 3307 |
|
|
0 commit comments