summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py8
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 ''