mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
Fix harmless undefined variable warning
This commit is contained in:
parent
c3067533b2
commit
c8fa308113
@ -202,7 +202,7 @@ sub interpret {
|
||||
$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)/) {
|
||||
$keyword =~ s/(\w+)([?!.]+)$/$1/;
|
||||
|
Loading…
Reference in New Issue
Block a user