diff options
| author | 2019-06-03 13:30:39 +0100 | |
|---|---|---|
| committer | 2019-06-03 13:30:39 +0100 | |
| commit | ef221f41658286968d709487ef25a8dcee48173d (patch) | |
| tree | 28ae5c76632097d1c93c1f00e81019854f90f8f1 /src/IRCLine.py | |
| parent | Bump resume back down to `draft/resume-0.4` (from `draft/resume-0.5`) for now (diff) | |
| signature | ||
v1.8.0 release
Diffstat (limited to 'src/IRCLine.py')
| -rw-r--r-- | src/IRCLine.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/IRCLine.py b/src/IRCLine.py index 9a545479..a612c0ad 100644 --- a/src/IRCLine.py +++ b/src/IRCLine.py @@ -39,12 +39,12 @@ class Hostmask(object): class ParsedLine(object): def __init__(self, command: str, args: typing.List[str], - prefix: Hostmask=None, + source: Hostmask=None, tags: typing.Dict[str, str]=None): self.command = command self._args = args self.args = IRCArgs(args) - self.prefix = prefix + self.source = source self.tags = {} if tags == None else tags def __repr__(self): @@ -69,8 +69,8 @@ class ParsedLine(object): if self.tags: pieces.append(self._tag_str(self.tags)) - if self.prefix: - pieces.append(str(self.prefix)) + if self.source: + pieces.append(str(self.source)) pieces.append(self.command.upper()) |
