mirror of
https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git
synced 2024-11-25 11:38:55 +00:00
now user captcha checking is in parallel
This commit is contained in:
parent
4a7339afd9
commit
3a7ef56565
@ -103,7 +103,11 @@ class CaptchaBotPlugin : Plugin {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
val settings = it.chat.settings()
|
val settings = it.chat.settings()
|
||||||
settings.captchaProvider.apply { doAction(it.date, chat, newUsers) }
|
doInSubContext(stopOnCompletion = false) {
|
||||||
|
launch {
|
||||||
|
settings.captchaProvider.apply { doAction(it.date, chat, newUsers) }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (adminsAPI != null) {
|
if (adminsAPI != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user