Fix auto-restart on excess flood
This commit is contained in:
parent
4e6b7ad372
commit
3649c82174
@ -6213,7 +6213,7 @@ def start(cli, nick, chan, forced = False, restart = ""):
|
||||
@hook("error")
|
||||
def on_error(cli, pfx, msg):
|
||||
if msg.endswith("(Excess Flood)"):
|
||||
restart_program.func(cli, "excess flood", "")
|
||||
restart_program.func(cli, "<console>", botconfig.CHANNEL, "")
|
||||
elif msg.startswith("Closing Link:"):
|
||||
raise SystemExit
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user