mirror of
https://github.com/pragma-/pbot.git
synced 2025-05-06 06:37:23 +02:00
Fix harmless undefined variable warning
This commit is contained in:
parent
c3067533b2
commit
c8fa308113
@ -202,7 +202,7 @@ sub interpret {
|
|||||||
$keyword = $command;
|
$keyword = $command;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tonick = $nick if $tonick eq 'me';
|
$tonick = $nick if defined $tonick and $tonick eq 'me';
|
||||||
|
|
||||||
if ($keyword !~ /^(factadd|add|factfind|find|factshow|show|forget|factdel|factset|factchange|change|msg|tell)/) {
|
if ($keyword !~ /^(factadd|add|factfind|find|factshow|show|forget|factdel|factset|factchange|change|msg|tell)/) {
|
||||||
$keyword =~ s/(\w+)([?!.]+)$/$1/;
|
$keyword =~ s/(\w+)([?!.]+)$/$1/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user