diff options
| author | 2019-02-10 18:16:19 +0000 | |
|---|---|---|
| committer | 2019-02-10 18:16:19 +0000 | |
| commit | bd9eaad0b2d05786dbe5b6c5d66bd199c9c712ea (patch) | |
| tree | 01060ddd06525fa22d3599d20084bfaa2affb926 /src/IRCLine.py | |
| parent | Make 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.py | 4 |
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]] |
