From 4142b728a5aeccce1149b8be67ed60be91fa9cfb Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 2 Jul 2021 00:09:32 -0700 Subject: [PATCH] StdinReader: silently discard empty input --- PBot/StdinReader.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PBot/StdinReader.pm b/PBot/StdinReader.pm index 7b46d8eb..701dfa7a 100644 --- a/PBot/StdinReader.pm +++ b/PBot/StdinReader.pm @@ -61,6 +61,8 @@ sub stdin_reader { # remove newline chomp $input; + return if not length $input; + $self->{pbot}->{logger}->log("---------------------------------------------\n"); $self->{pbot}->{logger}->log("Got STDIN: $input\n");