"duck" when duck count is 1, "ducks" otherwise
This commit is contained in:
parent
2d449691a8
commit
f336cecb06
1 changed files with 5 additions and 2 deletions
|
@ -68,8 +68,11 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
seconds = round(time.time()-duck_timestamp, 2)
|
||||
|
||||
return "%s %s a duck in %s seconds! You've %s %d ducks in %s!" % (
|
||||
user.nickname, action, seconds, action, action_count, channel.name)
|
||||
ducks_plural = "duck" if action_acount == 1 else "ducks"
|
||||
|
||||
return "%s %s a duck in %s seconds! You've %s %d %s in %s!" % (
|
||||
user.nickname, action, seconds, action, action_count, ducks_plural,
|
||||
channel.name)
|
||||
|
||||
def _no_duck(self, channel, user, stderr):
|
||||
if channel.get_setting("ducks-kick"):
|
||||
|
|
Loading…
Reference in a new issue