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/tell.py | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) (limited to 'plugins/tell.py') diff --git a/plugins/tell.py b/plugins/tell.py index 870fc12e..43a91d8b 100644 --- a/plugins/tell.py +++ b/plugins/tell.py @@ -30,20 +30,30 @@ from poezio.core.structs import Completion from poezio.decorators import command_args_parser from poezio import tabs + class Plugin(BasePlugin): def init(self): - self.api.add_tab_command(tabs.MucTab, 'tell', self.command_tell, - usage=' ', - help='Will tell of when he next joins.', - short='Send a message when someone joins') - self.api.add_tab_command(tabs.MucTab, 'untell', self.command_untell, - usage='', - help='Remove the planned messages from /tell.', - short='Cancel a /tell message', - completion=self.completion_untell) - self.api.add_tab_command(tabs.MucTab, 'list_tell', self.command_list_tell, - usage='', - help='List currently queued messages') + self.api.add_tab_command( + tabs.MucTab, + 'tell', + self.command_tell, + usage=' ', + help='Will tell of when he next joins.', + short='Send a message when someone joins') + self.api.add_tab_command( + tabs.MucTab, + 'untell', + self.command_untell, + usage='', + help='Remove the planned messages from /tell.', + short='Cancel a /tell message', + completion=self.completion_untell) + self.api.add_tab_command( + tabs.MucTab, + 'list_tell', + self.command_list_tell, + usage='', + help='List currently queued messages') self.api.add_event_handler('muc_join', self.on_join) self.api.add_event_handler('muc_nickchange', self.on_join) # {tab -> {nick -> [messages]} @@ -102,5 +112,5 @@ class Plugin(BasePlugin): tab = self.api.current_tab() if tab not in self.tabs: return Completion(the_input.auto_completion, [], '') - return Completion(the_input.auto_completion, list(self.tabs[tab]), '', quotify=False) - + return Completion( + the_input.auto_completion, list(self.tabs[tab]), '', quotify=False) -- cgit v1.2.3