Fix undefined variable $from when issuing commands from stdin

This commit is contained in:
Pragmatic Software 2014-03-07 16:50:35 +00:00
parent 4bcd485c2e
commit 80a29256ed
2 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@ sub check_stdin {
$from = $1;
$text = "$self->{trigger}$2";
} else {
$from = undef;
$from = "$self->{botnick}!stdin\@localhost";
$text = "$self->{trigger}$input";
}

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 512,
BUILD_REVISION => 513,
BUILD_DATE => "2014-03-07",
};