fix autorestart after kick due to excess flood
This commit is contained in:
parent
e5a60b84ed
commit
2df8db9d95
@ -2227,7 +2227,7 @@ def start(cli, nick, chan, rest):
|
|||||||
@hook("error")
|
@hook("error")
|
||||||
def on_error(cli, pfx, msg):
|
def on_error(cli, pfx, msg):
|
||||||
if msg.endswith("(Excess Flood)"):
|
if msg.endswith("(Excess Flood)"):
|
||||||
restart_program(cli, "excess flood")
|
restart_program(cli, "excess flood", "")
|
||||||
elif msg.startswith("Closing Link:"):
|
elif msg.startswith("Closing Link:"):
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user