diff options
author | mathieui <mathieui@mathieui.net> | 2012-04-18 00:17:46 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-04-18 00:17:46 +0200 |
commit | abd8d30990b64b35b86d56326a489ac9f1ad1b85 (patch) | |
tree | 73d8c8873f3e685356a330974360e7b06c632444 /src | |
parent | 3a1a1dcc6d20f1921d3ea2bb2347ab52c70bea3d (diff) | |
download | poezio-abd8d30990b64b35b86d56326a489ac9f1ad1b85.tar.gz poezio-abd8d30990b64b35b86d56326a489ac9f1ad1b85.tar.bz2 poezio-abd8d30990b64b35b86d56326a489ac9f1ad1b85.tar.xz poezio-abd8d30990b64b35b86d56326a489ac9f1ad1b85.zip |
Split correctly on command_name
Diffstat (limited to 'src')
-rw-r--r-- | src/tabs.py | 8 |
1 files 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 '' |