Should fix day_change plugin
This commit is contained in:
parent
32a75fd5c7
commit
33997e4356
2 changed files with 4 additions and 2 deletions
|
@ -24,8 +24,7 @@ class Plugin(BasePlugin):
|
|||
if (isinstance(tab, tabs.MucTab) or
|
||||
isinstance(tab, tabs.PrivateTab) or
|
||||
isinstance(tab, tabs.ConversationTab)):
|
||||
room = tab.get_room()
|
||||
room.add_message(msg)
|
||||
tab.add_message(msg)
|
||||
|
||||
self.core.refresh_window()
|
||||
self.schedule_event()
|
||||
|
|
|
@ -1995,6 +1995,9 @@ class ConversationTab(ChatTab):
|
|||
if config.get('send_chat_states', 'true') == 'true':
|
||||
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):
|
||||
"""
|
||||
A tab listing rooms from a specific server, displaying various information,
|
||||
|
|
Loading…
Reference in a new issue