fix plural form in @duration
This commit is contained in:
parent
8205738099
commit
0e92619987
|
@ -1601,7 +1601,7 @@ class Bantracker(callbacks.Plugin):
|
||||||
if ids is None:
|
if ids is None:
|
||||||
count = len(self.managedBans)
|
count = len(self.managedBans)
|
||||||
L = [ str(item.ban.id) for item in 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
|
return
|
||||||
|
|
||||||
if duration is not None:
|
if duration is not None:
|
||||||
|
|
|
@ -532,7 +532,7 @@ class BantrackerTestCase(ChannelPluginTestCase):
|
||||||
self.feedBan('asd!*@*')
|
self.feedBan('asd!*@*')
|
||||||
self.feedBan('qwe!*@*')
|
self.feedBan('qwe!*@*')
|
||||||
self.assertNotError('duration 1 1d')
|
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.assertNotError('duration 2 1d')
|
||||||
self.assertResponse('duration', "2 bans set to expire: 1 and 2")
|
self.assertResponse('duration', "2 bans set to expire: 1 and 2")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue