summaryrefslogtreecommitdiff
path: root/src/message.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2011-01-01 14:47:29 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2011-01-01 14:47:29 +0000
commitea3e606d473fb9906f956fcdcd51a4ab8102887f (patch)
tree4e15d19cc649f778cab02825777650868ac07b26 /src/message.py
parentd712d2e1c91efa951f652073bcbae47cee75d601 (diff)
downloadpoezio-ea3e606d473fb9906f956fcdcd51a4ab8102887f.tar.gz
poezio-ea3e606d473fb9906f956fcdcd51a4ab8102887f.tar.bz2
poezio-ea3e606d473fb9906f956fcdcd51a4ab8102887f.tar.xz
poezio-ea3e606d473fb9906f956fcdcd51a4ab8102887f.zip
fix /recolor with the new nick_color method
Diffstat (limited to 'src/message.py')
-rw-r--r--src/message.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/message.py b/src/message.py
index 67183678..004111d7 100644
--- a/src/message.py
+++ b/src/message.py
@@ -26,7 +26,7 @@ class Message(object):
The color can be a single number OR a list of numbers, for
specials cases like join or quit messages.
"""
- def __init__(self, txt, time=None, nickname=None, nick_color=None, color=None, colorized=False):
+ def __init__(self, txt, time=None, nickname=None, nick_color=None, color=None, colorized=False, user=None):
"""
time is a datetime object, None means 'now'.
If no nickname is specified, it's an information.
@@ -37,9 +37,10 @@ class Message(object):
self.nick_color = nick_color
self.color = color
self.colorized = colorized
+ self.user = user
def __repr__(self):
- return "<Message txt=%s, nickname=%s, time=%s, user=%s, colorized=%s>" % (self.txt, self.nickname, str(self.time), str(self.nick_color), self.colorized)
+ return "<Message txt=%s, nickname=%s, time=%s, user=%s, colorized=%s>" % (self.txt, self.nickname, str(self.time), str(self.user), self.colorized)
def __str__(self):
return self.__repr__()