3
0
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:
Pragmatic Software 2017-08-08 21:18:45 -07:00
parent c3067533b2
commit c8fa308113

View File

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