From ea016dc406685855253457322533e3cf52a12176 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 3 Jan 2020 21:22:14 -0800 Subject: [PATCH] StdinReader: chomp newline from input before logging --- PBot/StdinReader.pm | 1 + 1 file changed, 1 insertion(+) 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;