Converted uses of utils.pluralize to utils.nItems.

This commit is contained in:
Jeremy Fincher 2003-09-05 06:49:14 +00:00
parent 28b0fdba97
commit 20036816c8
2 changed files with 5 additions and 8 deletions

View File

@ -128,9 +128,7 @@ def makeNewAlias(name, alias):
alias_ = dollarRe.sub(replace, alias_)
self.Proxy(irc.irc, msg, callbacks.tokenize(alias_))
f.__doc__ ='<an alias, %s %s>\n\nAlias for %r' % \
(biggestDollar,
utils.pluralize(biggestDollar, 'argument'),
alias)
(utils.nItems(biggestDollar, 'argument'), alias)
#f = new.function(f.func_code, f.func_globals, name)
return f

View File

@ -333,8 +333,8 @@ class FunDB(callbacks.Privmsg):
total = int(cursor.fetchone()[0])
except ValueError:
irc.error(msg, 'Unexpected response from database')
irc.reply(msg, 'There %s currently %s %s in my database' % \
(utils.be(total), total, utils.pluralize(total, table)))
irc.reply(msg, 'There %s currently %s in my database' % \
(utils.be(total), utils.nItems(total, table)))
def dbget(self, irc, msg, args):
"""<lart|excuse|insult|praise> <id>
@ -386,9 +386,8 @@ class FunDB(callbacks.Privmsg):
else:
(add,req,count) = cursor.fetchone()
reply = '%s #%s: Created by %s. last requested by %s, requested '\
' a total of %s %s' % \
(table, id, add, req,
count, utils.pluralize(count, 'time'))
' a total of %s' % \
(table, id, add, req, utils.nItems(count, 'time'))
irc.reply(msg, reply)
def lart(self, irc, msg, args):