mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-05 21:17:43 -05:00
Helptickets: Auto-upload common battle replays on submit for PM harassment tickets
This commit is contained in:
parent
310e4e8987
commit
2cf47420ea
|
|
@ -754,6 +754,11 @@ export const textTickets: {[k: string]: TextTicketInfo} = {
|
|||
|
||||
return buf;
|
||||
},
|
||||
onSubmit(ticket, text, submitter, conn) {
|
||||
const targetId = toID(text[0]);
|
||||
// this does the saving for us so we don't have to do anything else
|
||||
getCommonBattles(targetId, Users.get(targetId), submitter.id, submitter, conn);
|
||||
},
|
||||
},
|
||||
inapname: {
|
||||
title: "What's the inappropriate username?",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user