From 6f7ac5a4a66c81fce9451a7bd1645fe3161848f6 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Fri, 1 Aug 2014 01:26:19 +0200 Subject: [PATCH] Use ChatTab in day_change --- plugins/day_change.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/day_change.py b/plugins/day_change.py index cedb4b35..6e0c3e1f 100644 --- a/plugins/day_change.py +++ b/plugins/day_change.py @@ -27,9 +27,7 @@ class Plugin(BasePlugin): msg = _("Day changed to %s") % (datetime.date.today().isoformat()) for tab in self.core.tabs: - if (isinstance(tab, tabs.MucTab) or - isinstance(tab, tabs.PrivateTab) or - isinstance(tab, tabs.ConversationTab)): + if isinstance(tab, tabs.ChatTab): tab.add_message(msg) self.core.refresh_window()