mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
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:
parent
3d0b8dc870
commit
18c49c9a56
@ -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)
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user