fix plural form in @duration

This commit is contained in:
Elián Hanisch 2012-07-29 23:53:17 -03:00
parent 8205738099
commit 0e92619987
2 changed files with 2 additions and 2 deletions

View File

@ -1601,7 +1601,7 @@ class Bantracker(callbacks.Plugin):
if ids is None:
count = len(self.managedBans)
L = [ str(item.ban.id) for item in self.managedBans ]
irc.reply("%s bans set to expire: %s" % (count, utils.str.format('%L', L)))
irc.reply(utils.str.format("%n set to expire: %L", (count, 'ban'), L))
return
if duration is not None:

View File

@ -532,7 +532,7 @@ class BantrackerTestCase(ChannelPluginTestCase):
self.feedBan('asd!*@*')
self.feedBan('qwe!*@*')
self.assertNotError('duration 1 1d')
self.assertResponse('duration', "1 bans set to expire: 1")
self.assertResponse('duration', "1 ban set to expire: 1")
self.assertNotError('duration 2 1d')
self.assertResponse('duration', "2 bans set to expire: 1 and 2")