3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-09 12:58:42 +02:00

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; $from = $1;
$text = "$self->{trigger}$2"; $text = "$self->{trigger}$2";
} else { } else {
$from = undef; $from = "$self->{botnick}!stdin\@localhost";
$text = "$self->{trigger}$input"; $text = "$self->{trigger}$input";
} }

View File

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