Fixed a couple typos in dbinfo

This commit is contained in:
James Vega 2003-09-16 17:16:11 +00:00
parent 32b0b65475
commit 7719b8dad3

View File

@ -415,7 +415,7 @@ class FunDB(callbacks.Privmsg):
try: try:
id = int(id) id = int(id)
except ValueError: except ValueError:
irc.error(msg, '<id> must be an integer.') irc.error(msg, 'The <id> argument must be an integer.')
return return
if table not in self._tables: if table not in self._tables:
irc.error(msg, '"%s" is not valid. Valid values include %s' % \ irc.error(msg, '"%s" is not valid. Valid values include %s' % \
@ -429,7 +429,7 @@ class FunDB(callbacks.Privmsg):
irc.error(msg, 'There is no such %s.' % table) irc.error(msg, 'There is no such %s.' % table)
else: else:
(add,req,count) = cursor.fetchone() (add,req,count) = cursor.fetchone()
reply = '%s #%s: Created by %s. last requested by %s, requested '\ reply = '%s #%s: Created by %s. last requested by %s, requested'\
' a total of %s' % \ ' a total of %s' % \
(table, id, add, req, utils.nItems(count, 'time')) (table, id, add, req, utils.nItems(count, 'time'))
irc.reply(msg, reply) irc.reply(msg, reply)