3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-02 17:38:50 +02: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
chomp $input;
return if not length $input;
$self->{pbot}->{logger}->log("---------------------------------------------\n");
$self->{pbot}->{logger}->log("Got STDIN: $input\n");