Actually return str object from IRCLine.__str__

This commit is contained in:
jesopo 2019-02-10 23:57:38 +00:00
parent d087143a5d
commit 63dc5009f7

View file

@ -22,7 +22,7 @@ class Line(IRCObject.Object):
def __repr__(self) -> str:
return "IRCLine.Line(%s)" % self.__str__()
def __str__(self) -> str:
return self._data
return self.decoded_data()
def _char_limit(self) -> int:
return LINE_CUTOFF-len(":%s " % self.server.hostmask())