add_message_to_text_buffer was never used with its time and history arguments.

This commit is contained in:
Emmanuel Gil Peyrot 2016-04-01 02:02:49 +01:00
parent bfe7a3100e
commit 0f066ab1ff

View file

@ -1647,16 +1647,15 @@ class Core(object):
tabs.Tab.height - 2, 0) tabs.Tab.height - 2, 0)
self.left_tab_win = None self.left_tab_win = None
def add_message_to_text_buffer(self, buff, txt, def add_message_to_text_buffer(self, buff, txt, nickname=None):
time=None, nickname=None, history=None):
""" """
Add the message to the room if possible, else, add it to the Info window 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) (in the Info tab of the info window in the RosterTab)
""" """
if not buff: if not buff:
self.information('Trying to add a message in no room: %s' % txt, 'Error') self.information('Trying to add a message in no room: %s' % txt, 'Error')
else: return
buff.add_message(txt, time, nickname, history=history) buff.add_message(txt, nickname=nickname)
def full_screen_redraw(self): def full_screen_redraw(self):
""" """