aboutsummaryrefslogtreecommitdiff
path: root/src/IRCBuffer.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-01 17:26:31 +0100
committerGravatar jesopo2018-10-01 17:26:31 +0100
commit976b6ae335fc7563f35bc6e50d33779f4d69136e (patch)
tree0ce1f72b77532562b5e3639092b4a02e0aca7aa4 /src/IRCBuffer.py
parentEventHook._call takes 3 args (diff)
signature
Better support for msgtags with PRIVMSGs; put functionality in to
modules/commands.py to reply to specific messages by use of msgids
Diffstat (limited to 'src/IRCBuffer.py')
-rw-r--r--src/IRCBuffer.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/IRCBuffer.py b/src/IRCBuffer.py
index 12a82ada..b3825178 100644
--- a/src/IRCBuffer.py
+++ b/src/IRCBuffer.py
@@ -2,10 +2,11 @@ import re
from . import Utils
class BufferLine(object):
- def __init__(self, sender, message, action, from_self):
+ def __init__(self, sender, message, action, tags, from_self):
self.sender = sender
self.message = message
self.action = action
+ self.tags = tags
self.from_self = from_self
class Buffer(object):
@@ -15,9 +16,9 @@ class Buffer(object):
self.lines = []
self.max_lines = 64
self._skip_next = False
- def add_line(self, sender, message, action, from_self=False):
+ def add_line(self, sender, message, action, tags, from_self=False):
if not self._skip_next:
- line = BufferLine(sender, message, action, from_self)
+ line = BufferLine(sender, message, action, tags, from_self)
self.lines.insert(0, line)
if len(self.lines) > self.max_lines:
self.lines.pop()