From c8fa308113cfdeb8d9ea13d081a9678b896d517d Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 8 Aug 2017 21:18:45 -0700 Subject: [PATCH] Fix harmless undefined variable warning --- PBot/Interpreter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index 30e04b9e..32301350 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -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/;