aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-17 18:23:38 +0100
committerGravatar jesopo2019-06-17 18:23:38 +0100
commit133ff1c0f683f5451e6ea1ad2914329ea1022065 (patch)
tree7dded8f67d7e685bbe25345e959a0472c50a3130 /src
parentWARN log for soft SASL failure (diff)
signature
only count "\n"s (not "\r\n") that hit the wire, incase \r\n gets cut in half
Diffstat (limited to 'src')
-rw-r--r--src/IRCSocket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/IRCSocket.py b/src/IRCSocket.py
index 886cfe4a..f33227be 100644
--- a/src/IRCSocket.py
+++ b/src/IRCSocket.py
@@ -146,7 +146,7 @@ class Socket(IRCObject.Object):
bytes_written_i = self._socket.send(self._write_buffer)
bytes_written = self._write_buffer[:bytes_written_i]
- sent_lines_count = bytes_written.count(b"\r\n")
+ sent_lines_count = bytes_written.count(b"\n")
sent_lines = [] # type: typing.List[IRCLine.SentLine]
for i in range(sent_lines_count):
sent_lines.append(self._buffered_lines.pop(0))