From aa421a2d56c5bdfb467eddaba478e5aef04bbce4 Mon Sep 17 00:00:00 2001 From: William Heimbigner Date: Tue, 26 Apr 2011 17:42:42 +0000 Subject: Lots of added stuff. Don't know whatall. --- modules/mysql.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/mysql.pl') diff --git a/modules/mysql.pl b/modules/mysql.pl index f0b7845..e5470bb 100644 --- a/modules/mysql.pl +++ b/modules/mysql.pl @@ -134,7 +134,7 @@ sub query $host =~ s/\*/%/g; $host =~ s/_/\\_/g; $host =~ s/\?/_/g; - my $sth = $dbh->prepare("SELECT * from $self->{TABLE} WHERE channel = $channel and nick like $nick and user like $user and host like $host;"); + my $sth = $dbh->prepare("SELECT * from $self->{TABLE} WHERE channel like $channel and nick like $nick and user like $user and host like $host;"); $sth->execute; my $i = 0; while (my $ref = $sth->fetchrow_arrayref) { -- cgit v1.2.3