mirror of
https://github.com/pragma-/pbot.git
synced 2025-03-01 12:00:45 +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;
|
$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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user