From 0d21eadcaae2a57d118daf927c310b821fac0678 Mon Sep 17 00:00:00 2001 From: mercury Date: Thu, 14 Nov 2024 02:32:03 +0400 Subject: [PATCH] fix input timer autoscan --- app/bot.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/bot.php b/app/bot.php index 5f969d2..4421ea8 100644 --- a/app/bot.php +++ b/app/bot.php @@ -4934,9 +4934,11 @@ DNS-over-HTTPS with IP: if (empty($time)) { unset($pac['autoscan_timeout']); unset($pac['autoscan']); - } else { - $pac['autoscan_timeout'] = strtotime($time, 0); + } elseif ($t = strtotime($time, 0)) { + $pac['autoscan_timeout'] = $t; $pac['autoscan'] = 1; + } else { + $this->send($this->input['from'], "$time - wrong format", $this->input['message_id']); } $this->setPacConf($pac); $this->ipMenu();