Fix auto-restart on excess flood

This commit is contained in:
nyuszika7h 2015-07-09 23:55:04 +02:00
parent 4e6b7ad372
commit 3649c82174

View File

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