From 1d77fc4a297827b684e506c59a5ee40b7b2c6074 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Thu, 16 Apr 2015 18:53:58 +0200 Subject: [PATCH] Revert "Ping joined players even if the bot was quit and restarted manually" This reverts commit 1db767cafaa33645e79a6fe3bb51c825a2529f86. This is actually rarely useful, and more often annoying, especially when debugging. --- src/wolfgame.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 1ea30d7..ae98f01 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -486,15 +486,6 @@ def forced_exit(cli, nick, chan, rest): except Exception: notify_error(cli, chan, errlog) - try: - with sqlite3.connect("data.sqlite3", check_same_thread=False) as conn: - c = conn.cursor() - players = var.list_players() - if players: - c.execute("UPDATE pre_restart_state SET players = ?", (" ".join(players),)) - except Exception: - notify_error(cli, chan, errlog) - try: reset() except Exception: