MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / removeCaptchaState

Function removeCaptchaState

pmcaptcha/pmcaptcha.ts:700–706  ·  view source on GitHub ↗
(userId: number)

Source from the content-addressed store, hash-verified

698 const state = states.get(userId);
699 if (!state) return undefined;
700 clearCaptchaTimer(state);
701 states.delete(userId);
702 return state;
703}
704
705function drainCaptchaStates(): void {
706 for (const state of states.values()) {
707 clearCaptchaTimer(state);
708 }
709 states.clear();

Callers 3

sendCaptchaFunction · 0.85
handleReplyFunction · 0.85
pmcaptchaFunction · 0.85

Calls 3

clearCaptchaTimerFunction · 0.85
getMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected