Skip to content

Commit

Permalink
Suspects: don't strip periods from req data
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Nov 2, 2024
1 parent 89dd113 commit a4f42d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/chat-plugins/suspect-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ export const commands: Chat.ChatCommands = {
return this.errorReply("At least one requirement for qualifying must be provided.");
}
for (const req of reqs) {
const [k, v] = req.split('=').map(toID);
let [k, v] = req.split('=');
k = toID(k);
if (!['elo', 'gxe', 'coil'].includes(k)) {
return this.errorReply(`Invalid requirement type: ${k}. Must be 'coil', 'gxe', or 'elo'.`);
}
Expand Down

0 comments on commit a4f42d4

Please sign in to comment.