mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
Require curly braces or backticks around embedded commands
This commit is contained in:
parent
f364075bff
commit
930801a5fb
@ -669,11 +669,6 @@ sub interpreter {
|
||||
|
||||
$self->{pbot}->{logger}->log("(" . (defined $from ? $from : "(undef)") . "): $nick!$user\@$host: $keyword: action: \"$action\"\n");
|
||||
|
||||
if ($referenced) {
|
||||
return undef if $action =~ m/\$(?:nick|arg)/;
|
||||
return undef if $arguments =~ m/\$(?:nick|arg)/;
|
||||
}
|
||||
|
||||
if($self->{factoids}->hash->{$channel}->{$keyword}->{enabled} == 0) {
|
||||
$self->{pbot}->{logger}->log("$keyword disabled.\n");
|
||||
return "/msg $nick $ref_from$keyword is currently disabled.";
|
||||
|
Loading…
Reference in New Issue
Block a user