From 0cc9a5976339172816962c033899aae9709f5144 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Mon, 1 Aug 2011 22:42:06 -0500 Subject: [PATCH] fixed some bugs and made !flastgame better --- var.py | 4 ++-- wolfgame.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/var.py b/var.py index 8c133a8..6ce5fe6 100644 --- a/var.py +++ b/var.py @@ -172,7 +172,7 @@ def remove_away(clk): def add_away(clk): with conn: - c.execute('INSERT into away values (?)', (clk,)) + c.execute('INSERT into away VALUES (?)', (clk,)) def update_role_stats(clk, role, won, iwon): role = role.replace(" ", "_")+'stats' @@ -192,7 +192,7 @@ def update_role_stats(clk, role, won, iwon): totalgames += 1 c.execute(('INSERT OR REPLACE INTO {0} (cloak, teamwins, individualwins, total) '+ - 'values (?,?,?,?)').format(role), (clk, wins, iwins, totalgames)) + 'VALUES (?,?,?,?)').format(role), (clk, wins, iwins, totalgames)) diff --git a/wolfgame.py b/wolfgame.py index 32c0aef..09a2295 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -1975,9 +1975,9 @@ def flastgame(cli, nick, *rest): chan = botconfig.CHANNEL if "join" in COMMANDS.keys(): - del COMMANDS["join"] + COMMANDS["join"] = [lambda *spam: cli.msg(chan, "This command has been disabled by an admin.")] if "start" in COMMANDS.keys(): - del COMMANDS["start"] + COMMANDS["start"] = [lambda *spam: cli.msg(chan, "This command has been disabled by an admin.")] cli.msg(chan, "Starting a new game has now been disabled by \02{0}\02.".format(nick))