summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/day_change.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/day_change.py b/plugins/day_change.py
index cac69a75..14924684 100644
--- a/plugins/day_change.py
+++ b/plugins/day_change.py
@@ -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()