Fix arguments for /status command
This commit is contained in:
parent
5aff41b69b
commit
2f0015c631
1 changed files with 3 additions and 1 deletions
|
@ -1007,7 +1007,7 @@ class Core(object):
|
||||||
/status <status> [msg]
|
/status <status> [msg]
|
||||||
"""
|
"""
|
||||||
args = common.shell_split(arg)
|
args = common.shell_split(arg)
|
||||||
if len(args) != 2 and len(args) != 1:
|
if len(args) < 1:
|
||||||
return
|
return
|
||||||
if not args[0] in possible_show.keys():
|
if not args[0] in possible_show.keys():
|
||||||
self.command_help('status')
|
self.command_help('status')
|
||||||
|
@ -1015,6 +1015,8 @@ class Core(object):
|
||||||
show = possible_show[args[0]]
|
show = possible_show[args[0]]
|
||||||
if len(args) == 2:
|
if len(args) == 2:
|
||||||
msg = args[1]
|
msg = args[1]
|
||||||
|
elif len(args) > 2:
|
||||||
|
msg = arg[len(args[0])+1:]
|
||||||
else:
|
else:
|
||||||
msg = None
|
msg = None
|
||||||
pres = self.xmpp.make_presence()
|
pres = self.xmpp.make_presence()
|
||||||
|
|
Loading…
Reference in a new issue