summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-04-01 02:02:49 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-06-11 20:49:46 +0100
commit0f066ab1ffbd2ca5cd217c13c05beabffa871cd7 (patch)
tree6ece92637cb1d05ecdc6096a65bf0f640c70aa8d
parentbfe7a3100e8ad1b0e0132efc2ec554da5f455ba4 (diff)
downloadpoezio-0f066ab1ffbd2ca5cd217c13c05beabffa871cd7.tar.gz
poezio-0f066ab1ffbd2ca5cd217c13c05beabffa871cd7.tar.bz2
poezio-0f066ab1ffbd2ca5cd217c13c05beabffa871cd7.tar.xz
poezio-0f066ab1ffbd2ca5cd217c13c05beabffa871cd7.zip
add_message_to_text_buffer was never used with its time and history arguments.
-rw-r--r--poezio/core/core.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py
index f32099f1..ab234367 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -1647,16 +1647,15 @@ class Core(object):
tabs.Tab.height - 2, 0)
self.left_tab_win = None
- def add_message_to_text_buffer(self, buff, txt,
- time=None, nickname=None, history=None):
+ def add_message_to_text_buffer(self, buff, txt, nickname=None):
"""
Add the message to the room if possible, else, add it to the Info window
(in the Info tab of the info window in the RosterTab)
"""
if not buff:
self.information('Trying to add a message in no room: %s' % txt, 'Error')
- else:
- buff.add_message(txt, time, nickname, history=history)
+ return
+ buff.add_message(txt, nickname=nickname)
def full_screen_redraw(self):
"""