mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
Minor derp with log message
This commit is contained in:
parent
255b42efee
commit
08a26a70a7
@ -501,15 +501,19 @@ sub get_message_account {
|
||||
} else {
|
||||
# handle cases like 99.57.140.149 vs 99-57-140-149.lightspeed.sntcca.sbcglobal.net
|
||||
if (defined $hostip) {
|
||||
$match = 1 if $hostip eq $thost;
|
||||
if ($hostip eq $thost) {
|
||||
$match = 1;
|
||||
$self->{pbot}->{logger}->log("IP vs hostname match: $host vs $thost\n");
|
||||
}
|
||||
} elsif ($thost =~ m/(\d+[[:punct:]]\d+[[:punct:]]\d+[[:punct:]]\d+)\D/) {
|
||||
my $thostip = $1;
|
||||
$thostip =~ s/[[:punct:]]/./g;
|
||||
$match = 1 if $thostip eq $host;
|
||||
if ($thostip eq $host) {
|
||||
$match = 1;
|
||||
$self->{pbot}->{logger}->log("IP vs hostname match: $host vs $thost\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($match) {
|
||||
$rows->[0] = $row;
|
||||
@ -1103,18 +1107,22 @@ sub link_aliases {
|
||||
} else {
|
||||
# handle cases like 99.57.140.149 vs 99-57-140-149.lightspeed.sntcca.sbcglobal.net
|
||||
if (defined $hostip) {
|
||||
$ids{$row->{id}} = { id => $row->{id}, type => $self->{alias_type}->{STRONG} } if $hostip eq $thost; # don't force linking
|
||||
if ($hostip eq $thost) {
|
||||
$ids{$row->{id}} = { id => $row->{id}, type => $self->{alias_type}->{STRONG} }; # don't force linking
|
||||
$self->{pbot}->{logger}->log("IP vs hostname match: $host vs $thost\n");
|
||||
}
|
||||
} elsif ($thost =~ m/(\d+[[:punct:]]\d+[[:punct:]]\d+[[:punct:]]\d+)\D/) {
|
||||
my $thostip = $1;
|
||||
$thostip =~ s/[[:punct:]]/./g;
|
||||
$ids{$row->{id}} = { id => $row->{id}, type => $self->{alias_type}->{STRONG} } if $thostip eq $host; # don't force linking
|
||||
if ($thostip eq $host) {
|
||||
$ids{$row->{id}} = { id => $row->{id}, type => $self->{alias_type}->{STRONG} }; # don't force linking
|
||||
$self->{pbot}->{logger}->log("IP vs hostname match: $host vs $thost\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($nickserv) {
|
||||
my $sth = $self->{dbh}->prepare('SELECT id FROM Nickserv WHERE nickserv = ?');
|
||||
|
Loading…
Reference in New Issue
Block a user