Ensure $last_output is defined

This commit is contained in:
Pragmatic Software 2015-01-22 06:41:55 -08:00
parent 383c9f7813
commit 7ad726b383
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ sub show_output {
}
close FILE;
if($last_output eq $output) {
if(defined $last_output and $last_output eq $output) {
print "$self->{nick}: Same output.\n";
exit 0;
}