mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Converted uses of utils.pluralize to utils.nItems.
This commit is contained in:
parent
28b0fdba97
commit
20036816c8
@ -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
|
||||
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user