aboutsummaryrefslogtreecommitdiff
path: root/src/IRCLine.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-10 18:16:19 +0000
committerGravatar jesopo2019-02-10 18:16:19 +0000
commitbd9eaad0b2d05786dbe5b6c5d66bd199c9c712ea (patch)
tree01060ddd06525fa22d3599d20084bfaa2affb926 /src/IRCLine.py
parentMake use of utils.truncate_encode, to avoid cutting utf8 sequences in half (diff)
signature
Return truncted data from encode_truncate and hold it in IRCLine.Line
Diffstat (limited to 'src/IRCLine.py')
-rw-r--r--src/IRCLine.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/IRCLine.py b/src/IRCLine.py
index 71fc0512..88c1cfe4 100644
--- a/src/IRCLine.py
+++ b/src/IRCLine.py
@@ -2,9 +2,11 @@ import datetime, typing
from src import IRCObject
class Line(IRCObject.Object):
- def __init__(self, send_time: datetime.datetime, data: bytes):
+ def __init__(self, send_time: datetime.datetime, data: bytes,
+ truncated: str):
self.send_time = send_time
self.data = data
+ self.truncated = truncated
self._on_send = [] # type: typing.List[typing.Callable[[], None]]