mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-30 07:59:42 +01:00
Fix undefined variable $from when issuing commands from stdin
This commit is contained in:
parent
4bcd485c2e
commit
80a29256ed
@ -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";
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user