summaryrefslogtreecommitdiff
path: root/src/room.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-06-23 23:33:02 +0200
committermathieui <mathieui@mathieui.net>2011-06-23 23:33:02 +0200
commit306abbf97487d50700c1e63ca2ecba021638cf0e (patch)
tree10cb95bf48c5200096b97d3f5539611f36195faa /src/room.py
parent4e04c0bb7b4630e80829a621f01c3fd192331564 (diff)
downloadpoezio-306abbf97487d50700c1e63ca2ecba021638cf0e.tar.gz
poezio-306abbf97487d50700c1e63ca2ecba021638cf0e.tar.bz2
poezio-306abbf97487d50700c1e63ca2ecba021638cf0e.tar.xz
poezio-306abbf97487d50700c1e63ca2ecba021638cf0e.zip
Fixes #1736
Diffstat (limited to 'src/room.py')
-rw-r--r--src/room.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/room.py b/src/room.py
index 45ebddbd..a112fc7b 100644
--- a/src/room.py
+++ b/src/room.py
@@ -95,7 +95,7 @@ class Room(TextBuffer):
"""
self.color_state = color
- def add_message(self, txt, time=None, nickname=None, forced_user=None, nick_color=None):
+ def add_message(self, txt, time=None, nickname=None, forced_user=None, nick_color=None, history=None):
"""
Note that user can be None even if nickname is not None. It happens
when we receive an history message said by someone who is not
@@ -130,7 +130,7 @@ class Room(TextBuffer):
self.messages.append(message)
for window in self.windows: # make the associated windows
# build the lines from the new message
- nb = window.build_new_message(message)
+ nb = window.build_new_message(message, history=history)
if window.pos != 0:
window.scroll_up(nb)
return nb