diff options
Diffstat (limited to 'src/IRCLine.py')
| -rw-r--r-- | src/IRCLine.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/IRCLine.py b/src/IRCLine.py index e22a79ad..9e1d85fb 100644 --- a/src/IRCLine.py +++ b/src/IRCLine.py @@ -46,12 +46,18 @@ class ParsedLine(object): self.args = IRCArgs(args) self.source = source self.tags = {} if tags == None else tags + self._valid = True def __repr__(self): return "ParsedLine(%s)" % self.__str__() def __str__(self): return self.format() + def valid(self) -> bool: + return self._valid + def invalidate(self): + self._valid = False + def _tag_str(self, tags: typing.Dict[str, str]) -> str: tag_pieces = [] for tag, value in tags.items(): |
