From 6e13b8b73572f9c0ac9b5c683b98a475afbeab38 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 15 Aug 2018 13:13:17 +0200 Subject: yapf -rip on plugins --- plugins/status.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'plugins/status.py') diff --git a/plugins/status.py b/plugins/status.py index b14e5cab..fd50481b 100644 --- a/plugins/status.py +++ b/plugins/status.py @@ -27,14 +27,17 @@ Aliases """ from poezio.plugin import BasePlugin + class Plugin(BasePlugin): """ Adds several convenient aliases to /status command """ + def init(self): for st in ('dnd', 'busy', 'afk', 'chat', 'xa', 'away', 'available'): - 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) + 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