mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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)
|
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)
|
||||||
|
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user