From 105351d6f3c4a29b357a9d5b272bf75fbe2e4a22 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 18 May 2019 19:07:45 +0100 Subject: [PATCH] Add a timestamp to recent_sends for EACH line sent --- src/IRCSocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRCSocket.py b/src/IRCSocket.py index cea00862..b3b17b6d 100644 --- a/src/IRCSocket.py +++ b/src/IRCSocket.py @@ -143,7 +143,7 @@ class Socket(IRCObject.Object): self.bytes_written += bytes_written_i now = time.monotonic() - self._recent_sends.append(now) + self._recent_sends.extend([now]*lines_sent) self.last_send = now return sent_lines