diff --git a/PBot/StdinReader.pm b/PBot/StdinReader.pm index c6e59479..9a18201e 100644 --- a/PBot/StdinReader.pm +++ b/PBot/StdinReader.pm @@ -37,6 +37,7 @@ sub initialize { sub stdin_reader { my ($self, $input) = @_; + chomp $input; # make sure we're in the foreground first $self->{foreground} = (tcgetpgrp($self->{tty_fd}) == getpgrp()) ? 1 : 0;