From 54fe9b347bfd18f3e2a77c6ce9cec9a1f66b8fa5 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Wed, 14 Jan 2015 13:49:29 +0100 Subject: [PATCH] wait: Use 'playing' in the decorator --- modules/wolfgame.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 9dff628..38e4c1a 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -5872,16 +5872,13 @@ def fdeny(cli, nick, chan, rest): """Deny someone from using a command.""" allow_deny(cli, nick, chan, rest, "deny") -@cmd("wait", "w", join=True) +@cmd("wait", "w", join=True, playing=True) def wait(cli, nick, chan, rest): """Increases the wait time until !start can be used.""" pl = var.list_players() if chan != botconfig.CHANNEL: return - if nick not in pl: - cli.notice(nick, "You're currently not playing.") - return if var.WAITED >= var.MAXIMUM_WAITED: cli.msg(chan, "Limit has already been reached for extending the wait time.") return