mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +01:00
Ensure $last_output is defined
This commit is contained in:
parent
383c9f7813
commit
7ad726b383
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user