mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Thing of the day: Add destroy handler (#11694)
This commit is contained in:
parent
6d9a1cd20f
commit
35e871e1d1
|
|
@ -1021,3 +1021,13 @@ export const roomSettings: Chat.SettingsHandler[] = [
|
|||
] : [['disabled', true]],
|
||||
}),
|
||||
];
|
||||
|
||||
export const destroy = () => {
|
||||
for (const [, v] of otds) {
|
||||
if (v.autoStartTimer) {
|
||||
clearInterval(v.autoStartTimer);
|
||||
v.autoStartTimer = null;
|
||||
v.room.modlog({ action: `${v.id.toUpperCase()} TIMER RESTART` });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user