From a9193faf121f69c5bbb7b99dc415b13923acd384 Mon Sep 17 00:00:00 2001 From: eleksir Date: Wed, 2 Dec 2020 20:26:16 +0300 Subject: [PATCH] Do not answer in chat if quoted mention less than 4 chars. --- lib/telegrambot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/telegrambot.pm b/lib/telegrambot.pm index 40cae94..19c1152 100644 --- a/lib/telegrambot.pm +++ b/lib/telegrambot.pm @@ -361,7 +361,7 @@ MYHELP $phrase =~ s/$pat2//g; # figure out reply :) - $reply = $hailo->{$msg->chat->id}->learn_reply ($phrase); + $reply = $hailo->{$msg->chat->id}->learn_reply ($phrase) if (length ($phrase) > 3); # simple commands # TODO: Log commands and answers } elsif (substr ($text, 0, 1) eq $c->{telegrambot}->{csign}) {