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/time_marker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/time_marker.py') diff --git a/plugins/time_marker.py b/plugins/time_marker.py index 02917533..2801ff47 100644 --- a/plugins/time_marker.py +++ b/plugins/time_marker.py @@ -16,7 +16,7 @@ from datetime import datetime, timedelta class Plugin(BasePlugin): def init(self): - self.add_event_handler("muc_msg", self.on_muc_msg) + self.api.add_event_handler("muc_msg", self.on_muc_msg) # Dict of MucTab.name: last_message date, so we don’t have to # retrieve the messages of the given muc to look for the last # message’s date each time. Also, now that I think about it, the -- cgit v1.2.3