aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IRCLine.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/IRCLine.py b/src/IRCLine.py
index 5aae1f53..47a93261 100644
--- a/src/IRCLine.py
+++ b/src/IRCLine.py
@@ -1,4 +1,4 @@
-import datetime, typing
+import datetime, typing, uuid
from src import IRCObject, utils
# this should be 510 (RFC1459, 512 with \r\n) but a server BitBot uses is broken
@@ -41,6 +41,7 @@ class ParsedLine(object):
def __init__(self, command: str, args: typing.List[str],
source: Hostmask=None,
tags: typing.Dict[str, str]=None):
+ self.id = str(uuid.uuid4())
self.command = command
self._args = args
self.args = IRCArgs(args)