From abd8d30990b64b35b86d56326a489ac9f1ad1b85 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 18 Apr 2012 00:17:46 +0200 Subject: Split correctly on command_name --- src/tabs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tabs.py b/src/tabs.py index 13c642ee..5e1f3038 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -1800,13 +1800,13 @@ class RosterInfoTab(Tab): return self.core.xmpp.sendPresence(pto=jid, ptype='subscribe') - def command_name(self, args): + def command_name(self, arg): """ Set a name for the specified JID in your roster """ - args = args.split(None, 1) - if len(args) < 1: - return + args = common.shell_split(arg) + if not args: + return self.command_help('name') jid = JID(args[0]).bare name = args[1] if len(args) == 2 else '' -- cgit v1.2.3