diff --git a/plugins/QuoteGrabs.py b/plugins/QuoteGrabs.py index 7661900b0..387df55bb 100644 --- a/plugins/QuoteGrabs.py +++ b/plugins/QuoteGrabs.py @@ -196,7 +196,7 @@ class QuoteGrabs(plugins.ChannelDBHandler, db = self.getDb(channel) cursor = db.cursor() cursor.execute("""SELECT id, quote FROM quotegrabs - WHERE nick=%s + WHERE nick LIKE %s ORDER BY id ASC""", nick) if cursor.rowcount == 0: irc.error('I couldn\'t find any quotegrabs for %s' % nick) diff --git a/test/test_QuoteGrabs.py b/test/test_QuoteGrabs.py index eb2e6498a..d6bda5d56 100644 --- a/test/test_QuoteGrabs.py +++ b/test/test_QuoteGrabs.py @@ -90,6 +90,8 @@ if sqlite: self.assertNotError('quote foo') self.assertNotError('quote FoO') self.assertNotError('quote Foo') + self.assertNotError('quotegrabs list FOO') + self.assertNotError('quotegrabs list fOo') def testRandomquote(self): testPrefix = 'foo!bar@baz'