From 9885203c6799c121f5bc8a733dc1937fe8c1b4d6 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 8 Mar 2013 22:53:35 +0100 Subject: 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 --- plugins/send_delayed.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/send_delayed.py') diff --git a/plugins/send_delayed.py b/plugins/send_delayed.py index 253bb027..3f678708 100644 --- a/plugins/send_delayed.py +++ b/plugins/send_delayed.py @@ -7,7 +7,7 @@ class Plugin(BasePlugin): def init(self): for _class in (tabs.PrivateTab, tabs.ConversationTab, tabs.MucTab): - self.add_tab_command(_class, 'send_delayed', self.command_delayed, + self.api.add_tab_command(_class, 'send_delayed', self.command_delayed, usage=' ', help='Send with a delay of seconds.', short='Send a message later', @@ -21,9 +21,9 @@ class Plugin(BasePlugin): if not delay: return - tab = self.core.current_tab() + tab = self.api.current_tab() timed_event = timed_events.DelayedEvent(delay, self.say, (tab, args[1])) - self.core.add_timed_event(timed_event) + self.api.add_timed_event(timed_event) def completion_delay(self, the_input): txt = the_input.get_text() -- cgit v1.2.3