diff options
author | mathieui <mathieui@mathieui.net> | 2013-03-08 22:53:35 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-03-08 22:53:35 +0100 |
commit | 9885203c6799c121f5bc8a733dc1937fe8c1b4d6 (patch) | |
tree | 4190635a7c9c78d2dce1a4c8357ccb887f12b8af /plugins/day_change.py | |
parent | dbde08a5267cf003d8a4a9c16f5b18275e9a4bd1 (diff) | |
download | poezio-9885203c6799c121f5bc8a733dc1937fe8c1b4d6.tar.gz poezio-9885203c6799c121f5bc8a733dc1937fe8c1b4d6.tar.bz2 poezio-9885203c6799c121f5bc8a733dc1937fe8c1b4d6.tar.xz poezio-9885203c6799c121f5bc8a733dc1937fe8c1b4d6.zip |
Update the plugins to use the PluginAPI
Also:
- Add get_conversation_messages() to PluginAPI
- Make plugins_autoload colon-separated instead of space-separated
(for consistency)
- Replace a JID() with a safeJID() in the uptime plugin
Diffstat (limited to 'plugins/day_change.py')
-rw-r--r-- | plugins/day_change.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/day_change.py b/plugins/day_change.py index 14924684..179bfd98 100644 --- a/plugins/day_change.py +++ b/plugins/day_change.py @@ -9,13 +9,13 @@ class Plugin(BasePlugin): self.schedule_event() def cleanup(self): - self.core.remove_timed_event(self.next_event) + self.api.remove_timed_event(self.next_event) def schedule_event(self): day_change = datetime.datetime.combine(datetime.date.today(), datetime.time()) day_change += datetime.timedelta(1) self.next_event = timed_events.TimedEvent(day_change, self.day_change) - self.core.add_timed_event(self.next_event) + self.api.add_timed_event(self.next_event) def day_change(self): msg = datetime.date.today().strftime(_("Day changed to %x")) |