From 0e9261998747cc6be9d9fc7165521f2b2ec180a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eli=C3=A1n=20Hanisch?= Date: Sun, 29 Jul 2012 23:53:17 -0300 Subject: [PATCH] fix plural form in @duration --- Bantracker/plugin.py | 2 +- Bantracker/test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Bantracker/plugin.py b/Bantracker/plugin.py index ccaf1cc..313c8e7 100644 --- a/Bantracker/plugin.py +++ b/Bantracker/plugin.py @@ -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: diff --git a/Bantracker/test.py b/Bantracker/test.py index f0bd5c4..615b409 100644 --- a/Bantracker/test.py +++ b/Bantracker/test.py @@ -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")