From 256aecb17457a76a84c9f7d66655ee5cbcbc58fc Mon Sep 17 00:00:00 2001 From: acidvegas Date: Sat, 27 May 2023 18:51:27 -0400 Subject: [PATCH] Added throttled connection detection --- ircp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircp.py b/ircp.py index 673cce5..da981bb 100644 --- a/ircp.py +++ b/ircp.py @@ -256,7 +256,7 @@ class probe: numeric = args[1] if line.startswith('ERROR :Closing Link'): raise Exception('DroneBL') if 'dronebl' in line.lower() else Exception('Banned') - elif line.startswith('ERROR :Trying to reconnect too fast') or line.startswith('ERROR :Your host is trying to (re)connect too fast'): + elif line.startswith('ERROR :Trying to reconnect too fast') or line.startswith('ERROR :Your host is trying to (re)connect too fast') or line.startswith('ERROR :Reconnecting too fast'): raise Exception('Throttled') elif line.startswith('ERROR :Access denied'): raise Exception('Access denied')