mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-29 23:39:24 +01:00
Double-quoted $0 in code-factoids now expand to root-keyword
This commit is contained in:
parent
c580fde95c
commit
6d552cc710
@ -639,6 +639,7 @@ sub interpreter {
|
|||||||
my @names = map { $_->symbol =~ /^[\%\@\$]+(.*)/; $1 } @$vars if $vars;
|
my @names = map { $_->symbol =~ /^[\%\@\$]+(.*)/; $1 } @$vars if $vars;
|
||||||
|
|
||||||
$code = $self->expand_factoid_vars($from, $code, @names);
|
$code = $self->expand_factoid_vars($from, $code, @names);
|
||||||
|
$code =~ s/"\$0"/$root_keyword/g;
|
||||||
|
|
||||||
my %signals = %SIG;
|
my %signals = %SIG;
|
||||||
alarm 0;
|
alarm 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user