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.
This commit is contained in:
parent
4b01eb2990
commit
1d77fc4a29
@ -486,15 +486,6 @@ def forced_exit(cli, nick, chan, rest):
|
|||||||
except Exception:
|
except Exception:
|
||||||
notify_error(cli, chan, errlog)
|
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:
|
try:
|
||||||
reset()
|
reset()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user