3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 19:52:34 +01:00

Use binary attribute for CSV

This commit is contained in:
Pragmatic Software 2016-02-10 10:14:12 -08:00
parent 194bff37db
commit 7bb18e00a7
2 changed files with 3 additions and 3 deletions

View File

@ -729,7 +729,7 @@ sub check_bans {
my ($nick) = $mask =~ m/^([^!]+)/;
my %aliases = $self->{pbot}->{messagehistory}->{database}->get_also_known_as($nick);
my $csv = Text::CSV->new;
my $csv = Text::CSV->new({binary => 1});
my ($do_not_validate, $bans);
foreach my $alias (keys %aliases) {

View File

@ -1169,7 +1169,7 @@ sub get_also_known_as {
my $nickserv_sth = $self->{dbh}->prepare('SELECT nickserv FROM Nickserv WHERE id = ?');
my $gecos_sth = $self->{dbh}->prepare('SELECT gecos FROM Gecos WHERE id = ?');
my $csv = Text::CSV->new;
my $csv = Text::CSV->new({binary => 1});
foreach my $id (keys %ids) {
$hostmask_sth->bind_param(1, $id);
@ -1329,7 +1329,7 @@ sub get_also_known_as {
return %akas;
};
$self->{pbot}->{logger}->log($@) if $@;
$self->{pbot}->{logger}->log("bad aka: $@") if $@;
return %akas;
}