From 7bf41499cb2c61d7bc15742c4f4bed3159445b8f Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 23 Oct 2003 05:14:41 +0000 Subject: [PATCH] Fixed pluralization bug in info. --- plugins/Factoids.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/Factoids.py b/plugins/Factoids.py index b3eb3d475..856c244ee 100644 --- a/plugins/Factoids.py +++ b/plugins/Factoids.py @@ -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('*?', '%_')