From b90d67b665cd4642645ea3fa197ac3f0a00d44ff Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 25 Mar 2018 16:04:17 -0700 Subject: [PATCH] `rq` nick search now whole-word; wildcards still work --- PBot/Plugins/Quotegrabs/Quotegrabs_SQLite.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/Plugins/Quotegrabs/Quotegrabs_SQLite.pm b/PBot/Plugins/Quotegrabs/Quotegrabs_SQLite.pm index 1f91ac91..0f33e570 100644 --- a/PBot/Plugins/Quotegrabs/Quotegrabs_SQLite.pm +++ b/PBot/Plugins/Quotegrabs/Quotegrabs_SQLite.pm @@ -121,7 +121,7 @@ sub get_random_quotegrab { if(defined $nick) { $sql .= $where . 'nick LIKE ? '; - push @params, "%$nick%"; + push @params, "$nick"; $where = ''; $and = 'AND '; }