Minor stylistic updates.

This commit is contained in:
Jeremy Fincher 2004-02-24 11:22:53 +00:00
parent de512b24de
commit 90ace9437d

View File

@ -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: