From 18c49c9a56ff46bc1c54614b19eb42c1109864a0 Mon Sep 17 00:00:00 2001 From: Daniel DiPaolo Date: Tue, 13 Jan 2004 06:39:58 +0000 Subject: [PATCH] Fixed case sensitivity on quotegrabs list. Again?? I could have sworn I fixed this already once! Doo-doo-doo-doo doo-doo-doo-doo doo-doo-doo-doo... --- plugins/QuoteGrabs.py | 2 +- test/test_QuoteGrabs.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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'