summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-08 00:14:44 +0100
committermathieui <mathieui@mathieui.net>2011-11-08 00:14:44 +0100
commit33997e43569fb2ea5944fa83812f19a484ce3c32 (patch)
treee9d622a04358f0f7835fd07fc6ba4223b81891a3 /plugins
parent32a75fd5c746ba6080f43ef56be361deb2e3bad3 (diff)
downloadpoezio-33997e43569fb2ea5944fa83812f19a484ce3c32.tar.gz
poezio-33997e43569fb2ea5944fa83812f19a484ce3c32.tar.bz2
poezio-33997e43569fb2ea5944fa83812f19a484ce3c32.tar.xz
poezio-33997e43569fb2ea5944fa83812f19a484ce3c32.zip
Should fix day_change plugin
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()