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:
parent
f7025ecfb7
commit
4142b728a5
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user