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/revstr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/revstr.py') diff --git a/plugins/revstr.py b/plugins/revstr.py index d66e6411..98a6ea1a 100644 --- a/plugins/revstr.py +++ b/plugins/revstr.py @@ -2,7 +2,7 @@ from plugin import BasePlugin class Plugin(BasePlugin): def init(self): - self.add_event_handler('muc_say', self.revstr) + self.api.add_event_handler('muc_say', self.revstr) def revstr(self, msg, tab): msg['body'] = msg['body'][::-1] -- cgit v1.2.3