3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 11:42:35 +01:00

Ensure $last_output is defined

This commit is contained in:
Pragmatic Software 2015-01-22 06:41:55 -08:00
parent 383c9f7813
commit 7ad726b383

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;
}