Fixed pluralization bug in info.

This commit is contained in:
Jeremy Fincher 2003-10-23 05:14:41 +00:00
parent 1168251809
commit 7bf41499cb

View File

@ -346,8 +346,9 @@ class Factoids(plugins.ChannelDBHandler, callbacks.Privmsg):
time.localtime(int(added_at)))
L.append('#%s was added by %s at %s' % (counter,added_by,added_at))
factoids = '; '.join(L)
s = 'Key %r is %s and has %s factoids associated with it: %s' % \
(key, locked and 'locked' or 'not locked', counter, factoids)
s = 'Key %r is %s and has %s associated with it: %s' % \
(key, locked and 'locked' or 'not locked',
utils.nItems(counter, 'factoid'), factoids)
irc.reply(msg, s)
_sqlTrans = string.maketrans('*?', '%_')