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))