mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Minor stylistic updates.
This commit is contained in:
parent
de512b24de
commit
90ace9437d
@ -272,7 +272,7 @@ class Lookup(callbacks.Privmsg):
|
|||||||
#print 'sql: %s' % sql
|
#print 'sql: %s' % sql
|
||||||
cursor.execute(sql, formats)
|
cursor.execute(sql, formats)
|
||||||
if cursor.rowcount == 0:
|
if cursor.rowcount == 0:
|
||||||
irc.reply('No %s matched that query.' % utils.pluralize(name))
|
irc.reply('No entries in %s matched that query.' % name)
|
||||||
else:
|
else:
|
||||||
lookups = ['%s: %s' % (item[0], self._shrink(item[1]))
|
lookups = ['%s: %s' % (item[0], self._shrink(item[1]))
|
||||||
for item in cursor.fetchall()]
|
for item in cursor.fetchall()]
|
||||||
@ -297,7 +297,7 @@ class Lookup(callbacks.Privmsg):
|
|||||||
irc.error(str(e))
|
irc.error(str(e))
|
||||||
return
|
return
|
||||||
if cursor.rowcount == 0:
|
if cursor.rowcount == 0:
|
||||||
irc.error('I couldn\'t find %s in %s' % (key, name))
|
irc.error('I couldn\'t find %s in %s.' % (key, name))
|
||||||
elif cursor.rowcount == 1:
|
elif cursor.rowcount == 1:
|
||||||
irc.reply(cursor.fetchone()[0])
|
irc.reply(cursor.fetchone()[0])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user