summaryrefslogtreecommitdiff
path: root/plugins/tell.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-11-11 21:05:38 +0100
committermathieui <mathieui@mathieui.net>2015-11-11 21:05:38 +0100
commit41283a4ff76de4c0ab990d1b62e4f69a43b29b73 (patch)
treed73fd01b4d33e74d553a2919983954b6efe04016 /plugins/tell.py
parent4b8d66da0c9debf4005a2080573653115dd8374e (diff)
downloadpoezio-41283a4ff76de4c0ab990d1b62e4f69a43b29b73.tar.gz
poezio-41283a4ff76de4c0ab990d1b62e4f69a43b29b73.tar.bz2
poezio-41283a4ff76de4c0ab990d1b62e4f69a43b29b73.tar.xz
poezio-41283a4ff76de4c0ab990d1b62e4f69a43b29b73.zip
Use the command_args_parser in the tell plugin
Diffstat (limited to 'plugins/tell.py')
-rw-r--r--plugins/tell.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/tell.py b/plugins/tell.py
index cfa76e9c..16cecacc 100644
--- a/plugins/tell.py
+++ b/plugins/tell.py
@@ -20,8 +20,8 @@ This plugin defines two new commands for MUC tabs: :term:`/tell` and :term:`/unt
"""
from plugin import BasePlugin
+from decorators import command_args_parser
import tabs
-import common
class Plugin(BasePlugin):
def init(self):
@@ -48,13 +48,13 @@ class Plugin(BasePlugin):
tab.command_say("%s: %s" % (nick, i))
del self.tabs[tab][nick]
+ @command_args_parser.quoted(2)
def command_tell(self, args):
"""/tell <nick> <message>"""
- arg = common.shell_split(args)
- if len(arg) != 2:
+ if args is None:
self.core.command_help('tell')
return
- nick, msg = arg
+ nick, msg = args
tab = self.api.current_tab()
if not tab in self.tabs:
self.tabs[tab] = {}