IRCP- information gathering tool for irc servers |
git clone git://git.acid.vegas/IRCP.git |
Log | Files | Refs | Archive | README | LICENSE |
commit 2b7d36bbfc1eb3d471e7c494ce5fa762dbd2708a
parent 483969d3cea298fdfa4ece0d1a0134844bc523ef Author: acidvegas <acid.vegas@acid.vegas> Date: Sun, 28 May 2023 01:21:47 -0400 Code cleanup Diffstat:
|
1 file changed, 4 insertions(+), 4 deletions(-) |
diff --git a/ircp.py b/ircp.py @@ -269,11 +269,11 @@ class probe: try: if self.reader.at_eof(): # TODO: can we use while self.reader.at_eof() outside of the try block? break - data = await asyncio.wait_for(self.reader.readuntil(b'\r\n'), throttle.ztimeout) - line = data.decode('utf-8').strip() - #debug(line) - args = line.split() + data = await asyncio.wait_for(self.reader.readuntil(b'\r\n'), throttle.ztimeout) + line = data.decode('utf-8').strip() + args = line.split() numeric = args[1] + #debug(line) 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') or line.startswith('ERROR :Reconnecting too fast'): |