summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-05-19 20:45:14 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-05-19 20:45:14 +0200
commit2f0015c631d7bece6001d7909755b5efd2078091 (patch)
tree9bd5bf413ec0949bff47155d187f90b2d6e05f6e
parent5aff41b69be43cfec31ea4b6b5c735b500fae9db (diff)
downloadpoezio-2f0015c631d7bece6001d7909755b5efd2078091.tar.gz
poezio-2f0015c631d7bece6001d7909755b5efd2078091.tar.bz2
poezio-2f0015c631d7bece6001d7909755b5efd2078091.tar.xz
poezio-2f0015c631d7bece6001d7909755b5efd2078091.zip
Fix arguments for /status command
-rw-r--r--src/core.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index a639cbfa..14cb4857 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1007,7 +1007,7 @@ class Core(object):
/status <status> [msg]
"""
args = common.shell_split(arg)
- if len(args) != 2 and len(args) != 1:
+ if len(args) < 1:
return
if not args[0] in possible_show.keys():
self.command_help('status')
@@ -1015,6 +1015,8 @@ class Core(object):
show = possible_show[args[0]]
if len(args) == 2:
msg = args[1]
+ elif len(args) > 2:
+ msg = arg[len(args[0])+1:]
else:
msg = None
pres = self.xmpp.make_presence()