mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
Do not expand underscore-prefixed factoid varianbles
This commit is contained in:
parent
35864b96a3
commit
f3a036bc81
@ -411,7 +411,7 @@ sub expand_factoid_vars {
|
||||
last if ++$depth >= 100;
|
||||
my ($a, $v) = ($1, $2);
|
||||
$v =~ s/(.):$/$1/;
|
||||
next if $v =~ m/^[\W]/; # special character prefix skipped for shell/code-factoids/etc
|
||||
next if $v =~ m/^[\W_]/; # special character prefix skipped for shell/code-factoids/etc
|
||||
next if $v =~ m/^(nick|channel|randomnick|arglen|args|arg\[.+\]|[_0])$/i; # don't override special variables
|
||||
next if @exclude && grep { $v =~ m/^\Q$_\E$/i } @exclude;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user