mirror of https://github.com/pragma-/pbot.git
`rq` nick search now whole-word; wildcards still work
This commit is contained in:
parent
ceb06d611c
commit
b90d67b665
|
@ -121,7 +121,7 @@ sub get_random_quotegrab {
|
||||||
|
|
||||||
if(defined $nick) {
|
if(defined $nick) {
|
||||||
$sql .= $where . 'nick LIKE ? ';
|
$sql .= $where . 'nick LIKE ? ';
|
||||||
push @params, "%$nick%";
|
push @params, "$nick";
|
||||||
$where = '';
|
$where = '';
|
||||||
$and = 'AND ';
|
$and = 'AND ';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue