3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01:00

StdinReader: silently discard empty input

This commit is contained in:
Pragmatic Software 2021-07-02 00:09:32 -07:00
parent f7025ecfb7
commit 4142b728a5

View File

@ -61,6 +61,8 @@ sub stdin_reader {
# remove newline # remove newline
chomp $input; chomp $input;
return if not length $input;
$self->{pbot}->{logger}->log("---------------------------------------------\n"); $self->{pbot}->{logger}->log("---------------------------------------------\n");
$self->{pbot}->{logger}->log("Got STDIN: $input\n"); $self->{pbot}->{logger}->log("Got STDIN: $input\n");