1
mirror of git://git.acid.vegas/IRCP.git synced 2024-11-23 00:16:41 +00:00

Added throttled connection detection

This commit is contained in:
Dionysus 2023-05-27 18:51:27 -04:00
parent 2006b162df
commit 256aecb174
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -256,7 +256,7 @@ class probe:
numeric = args[1] numeric = args[1]
if line.startswith('ERROR :Closing Link'): if line.startswith('ERROR :Closing Link'):
raise Exception('DroneBL') if 'dronebl' in line.lower() else Exception('Banned') 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') raise Exception('Throttled')
elif line.startswith('ERROR :Access denied'): elif line.startswith('ERROR :Access denied'):
raise Exception('Access denied') raise Exception('Access denied')