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/status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/status.py') diff --git a/plugins/status.py b/plugins/status.py index 38a26d91..7ff55382 100644 --- a/plugins/status.py +++ b/plugins/status.py @@ -6,8 +6,8 @@ class Plugin(BasePlugin): """ def init(self): for st in ('dnd', 'busy', 'afk', 'chat', 'xa', 'away', 'available'): - self.add_command(st, - lambda line,st=st: self.core.command_status(st + ' "'+line+'"'), + self.api.add_command(st, + lambda line,st=st: self.api.run_command('/status' + st + ' "'+line+'"'), usage='[status message]', short='Set your status as %s' % st, help='Set your status as %s' % st) -- cgit v1.2.3