aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IRCLine.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/IRCLine.py b/src/IRCLine.py
index 538c0a5e..9a545479 100644
--- a/src/IRCLine.py
+++ b/src/IRCLine.py
@@ -47,6 +47,11 @@ class ParsedLine(object):
self.prefix = prefix
self.tags = {} if tags == None else tags
+ def __repr__(self):
+ return "ParsedLine(%s)" % self.__str__()
+ def __str__(self):
+ return self.format()
+
def _tag_str(self, tags: typing.Dict[str, str]) -> str:
tag_pieces = []
for tag, value in tags.items():