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...

This commit is contained in:
Daniel DiPaolo 2004-01-13 06:39:58 +00:00
parent 3d0b8dc870
commit 18c49c9a56
2 changed files with 3 additions and 1 deletions

View File

@ -196,7 +196,7 @@ class QuoteGrabs(plugins.ChannelDBHandler,
db = self.getDb(channel) db = self.getDb(channel)
cursor = db.cursor() cursor = db.cursor()
cursor.execute("""SELECT id, quote FROM quotegrabs cursor.execute("""SELECT id, quote FROM quotegrabs
WHERE nick=%s WHERE nick LIKE %s
ORDER BY id ASC""", nick) ORDER BY id ASC""", nick)
if cursor.rowcount == 0: if cursor.rowcount == 0:
irc.error('I couldn\'t find any quotegrabs for %s' % nick) irc.error('I couldn\'t find any quotegrabs for %s' % nick)

View File

@ -90,6 +90,8 @@ if sqlite:
self.assertNotError('quote foo') self.assertNotError('quote foo')
self.assertNotError('quote FoO') 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): def testRandomquote(self):
testPrefix = 'foo!bar@baz' testPrefix = 'foo!bar@baz'