3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-05 10:58:44 +02:00

Prevent access to undefined db handle

This commit is contained in:
Pragmatic Software 2017-08-28 13:53:03 -07:00
parent d638370cdc
commit 9b1cdffa6b

View File

@ -1769,6 +1769,8 @@ sub get_message_account_id {
sub commit_message_history { sub commit_message_history {
my $self = shift; my $self = shift;
return if not $self->{dbh};
if($self->{new_entries} > 0) { if($self->{new_entries} > 0) {
# $self->{pbot}->{logger}->log("Commiting $self->{new_entries} messages to SQLite\n"); # $self->{pbot}->{logger}->log("Commiting $self->{new_entries} messages to SQLite\n");
eval { eval {