3
0
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:
Pragmatic Software 2017-08-26 01:50:42 -07:00
parent c580fde95c
commit 6d552cc710

View File

@ -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;