Commit Diff
Diff:
de94df3c2d2ee7c309ae605ebd410aab8ba5d5b6
aa94358bb72424f3f184db527aa3f05282e0bb01
Commit:
aa94358bb72424f3f184db527aa3f05282e0bb01
Tree:
55153245c662552e72804e326e8ef38e5f84b370
Author:
jrmu <jrmu@ircnow.org>
Committer:
jrmu <jrmu@ircnow.org>
Date:
Sun Oct 11 13:17:20 2020 UTC
Message:
Fixed error reporting for empty responses
blob - e8879c59cb55d5d4dfd64f46fdd831a1abed34cd
blob + 82e5d72d12aa2fe0b300a5257bb52f85610e1cdf
--- botnow.pl
+++ botnow.pl
@@ -7,7 +7,6 @@ use IO::Select;
use OpenBSD::Pledge;
use OpenBSD::Unveil;
use Digest::SHA qw(sha256_hex);
-use Data::Dumper;
use lib './';
use BNC;
use DNS;
@@ -213,8 +212,7 @@ while(my @ready = $sel->can_read) {
}
}
if (!defined($response = <$socket>)) {
- debug(ERRORS, "ERROR bot has no response:");
- warn Dumper \$bot;
+ debug(ERRORS, "ERROR ".$bot->{name}." has no response:");
next;
}
if ($response =~ /^PING :(.*)\r\n$/i) {