Should fix day_change plugin

This commit is contained in:
mathieui 2011-11-08 00:14:44 +01:00
parent 32a75fd5c7
commit 33997e4356
2 changed files with 4 additions and 2 deletions

View file

@ -24,8 +24,7 @@ class Plugin(BasePlugin):
if (isinstance(tab, tabs.MucTab) or if (isinstance(tab, tabs.MucTab) or
isinstance(tab, tabs.PrivateTab) or isinstance(tab, tabs.PrivateTab) or
isinstance(tab, tabs.ConversationTab)): isinstance(tab, tabs.ConversationTab)):
room = tab.get_room() tab.add_message(msg)
room.add_message(msg)
self.core.refresh_window() self.core.refresh_window()
self.schedule_event() self.schedule_event()

View file

@ -1995,6 +1995,9 @@ class ConversationTab(ChatTab):
if config.get('send_chat_states', 'true') == 'true': if config.get('send_chat_states', 'true') == 'true':
self.send_chat_state('gone') self.send_chat_state('gone')
def add_message(self, txt, time=None, nickname=None, forced_user=None):
self._text_buffer.add_message(txt, time, nickname, None, None, forced_user)
class MucListTab(Tab): class MucListTab(Tab):
""" """
A tab listing rooms from a specific server, displaying various information, A tab listing rooms from a specific server, displaying various information,