From 674a1c57c93ece7de1a2fde44c0e70eea2f3bba6 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Sat, 30 Jul 2011 22:31:10 -0500 Subject: [PATCH] cleaned up the code to reflect the changes to !game --- wolfgame.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/wolfgame.py b/wolfgame.py index 9ea16ab..3af5fa0 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -148,7 +148,6 @@ def reset(cli): var.ROLES = {"person" : []} reset_settings() - var.DENIED_SETTINGS_CHANGE = [] dict.clear(var.LAST_SAID_TIME) @@ -814,10 +813,6 @@ def goat(cli, nick, chan, rest): def on_nick(cli, prefix, nick): prefix,u,m,cloak = parse_nick(prefix) - if prefix in var.DENIED_SETTINGS_CHANGE: - var.DENIED_SETTINGS_CHANGE.append(nick) - var.DENIED_SETTINGS_CHANGE.remove(prefix) - if prefix in var.USERS: var.USERS.remove(prefix) var.CLOAKS.remove(cloak) @@ -2024,10 +2019,6 @@ if botconfig.DEBUG_MODE: if nick not in pl: cli.notice(nick, "You're currently not playing.") return - if nick in var.DENIED_SETTINGS_CHANGE: - cli.notice(nick, "You cannot vote because your previous "+ - "settings change was denied by vote.") - return if var.SETTINGS_CHANGE_REQUESTER: cli.notice(nick, "There is already an existing "+ "settings change request.") @@ -2038,9 +2029,6 @@ if botconfig.DEBUG_MODE: var.SETTINGS_CHANGE_REQUESTER = nick cli.msg(chan, ("\u0002{0}\u0002 has changed the "+ "game settings successfully.").format(nick)) - if var.CAN_START_TIME <= datetime.now(): - var.CAN_START_TIME = datetime.now() + timedelta(seconds=var.EXTRA_WAIT) * 2 - cli.msg(chan, "The wait time has also been extended.") @cmd("force", admin_only=True)