summaryrefslogtreecommitdiff
path: root/plugins/tell.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-08-15 13:13:17 +0200
committermathieui <mathieui@mathieui.net>2018-08-15 13:13:17 +0200
commit6e13b8b73572f9c0ac9b5c683b98a475afbeab38 (patch)
tree7dae86588339a8cf144b2d98c9280f28646341a9 /plugins/tell.py
parentd1b624753bb5371cf287cc9d86bb685593a99315 (diff)
downloadpoezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.tar.gz
poezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.tar.bz2
poezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.tar.xz
poezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.zip
yapf -rip on plugins
Diffstat (limited to 'plugins/tell.py')
-rw-r--r--plugins/tell.py38
1 files changed, 24 insertions, 14 deletions
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='<nick> <message>',
- help='Will tell <nick> of <message> when he next joins.',
- short='Send a message when someone joins')
- self.api.add_tab_command(tabs.MucTab, 'untell', self.command_untell,
- usage='<nick>',
- 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='<nick> <message>',
+ help='Will tell <nick> of <message> when he next joins.',
+ short='Send a message when someone joins')
+ self.api.add_tab_command(
+ tabs.MucTab,
+ 'untell',
+ self.command_untell,
+ usage='<nick>',
+ 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)