From 1a0b25796a643b73f0f149d1ad8e2b6e450ffe07 Mon Sep 17 00:00:00 2001 From: acetone Date: Fri, 28 May 2021 09:23:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D1=89=D0=B8=D1=82=D0=B0=20=D0=BE?= =?UTF-8?q?=D1=82=20=D1=82=D0=BE=D1=87=D0=BA=D0=B8=20=D0=B2=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=B8=D1=81=D0=BA=D0=BE=D0=B2=D0=BE=D0=BC=20=D0=B7=D0=B0=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D1=81=D0=B5=20(=D0=B8=D0=B1=D0=BE=20=D1=81=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=B0=D1=82=D1=8B=D0=B2=D0=B0=D0=B5=D1=82,=20?= =?UTF-8?q?=D0=BA=D0=B0=D0=BA=20=D1=80=D0=B5=D0=B3=D1=83=D0=BB=D1=8F=D1=80?= =?UTF-8?q?=D0=BA=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 5ab57b1..9e67867 100644 --- a/main.cpp +++ b/main.cpp @@ -280,7 +280,8 @@ void handler() { std::regex date_check(conf["find"] + " [0-9]{4}.[0-9]{2}.[0-9]{2}.*", std::regex_constants::egrep); - if (msg.find('*') != std::string::npos) { // Защита от хитрой регулярки + if (msg.find('*') != std::string::npos || msg.find('.') != std::string::npos) { + // Защита от хитрой регулярки tsc->write_to_channel(tsc->get_msg_nick() + ", " + conf["error"]); } else if (msg.find(' ') == std::string::npos) {