Fix pluralization in pingif

This commit is contained in:
nyuszika7h 2015-03-01 00:49:51 +01:00
parent b6b8341bbb
commit f4304a8d16

View File

@ -1064,7 +1064,8 @@ def join_timer_handler(cli):
decorators.unhook(HOOKS, 387)
if to_ping:
to_ping.sort(key=lambda x: x.lower())
cli.msg(botconfig.CHANNEL, "PING! {0} players! {1}".format(len(pl), " ".join(to_ping)))
cli.msg(botconfig.CHANNEL, "PING! {0} player{1}! {2}".format(
len(pl), "" if len(pl) == 1 else "s", " ".join(to_ping)))
cli.who(botconfig.CHANNEL, "%nushaf")