From 19760a0ea7ddeebae42720c7597efa737d750f10 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Sun, 22 Feb 2015 22:46:48 +0100 Subject: [PATCH] pingif: Fix incorrect usage of 'any' --- modules/wolfgame.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index e295cb5..97854b3 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -840,9 +840,9 @@ def altpinger(cli, nick, chan, rest): else: msg.append("You do not have any ping preferences currently set.") - elif any(rest[0] in ("off", "never"), - rest[0].isdigit() and int(rest[0]) == 0, - len(rest) > 1 and rest[1].isdigit() and int(rest[1]) == 0): + elif any((rest[0] in ("off", "never"), + rest[0].isdigit() and int(rest[0]) == 0, + len(rest) > 1 and rest[1].isdigit() and int(rest[1]) == 0)): if altpinged: msg.append("Your ping preferences have been removed (was {0}).".format(players)) toggle_altpinged_status(nick, 0, players)