From 2f0015c631d7bece6001d7909755b5efd2078091 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 19 May 2011 20:45:14 +0200 Subject: [PATCH] Fix arguments for /status command --- src/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 [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()