From cc8fd01412cdd9758903c7fe18b8a855a738cedf Mon Sep 17 00:00:00 2001 From: Delirious Date: Thu, 22 Feb 2024 16:13:10 -0700 Subject: [PATCH] Fixed uninitalized usage of $opts (to $this->opts) set_cooldown($this->engine, ($opts->request_cooldown ?? "1") * 60, $this->opts->cooldowns); to set_cooldown($this->engine, ($this->opts->request_cooldown ?? "1") * 60, $this->opts->cooldowns); --- engines/text/text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/text/text.php b/engines/text/text.php index e93d14a..35cd761 100644 --- a/engines/text/text.php +++ b/engines/text/text.php @@ -102,7 +102,7 @@ $results = $this->engine_request->get_results(); if (empty($results)) { - set_cooldown($this->engine, ($opts->request_cooldown ?? "1") * 60, $this->opts->cooldowns); + set_cooldown($this->engine, ($this->opts->request_cooldown ?? "1") * 60, $this->opts->cooldowns); } else { if ($this->special_request) { $special_result = $this->special_request->get_results();