better message when server is not running
when a client is started and the server is not running, issue 'please use ".. start .."' message
This commit is contained in:
@ -63,8 +63,8 @@ def run(group, arglist):
|
||||
return
|
||||
action = arglist.pop(0) if hasattr(serv, 'do_' + arglist[0]) else 'gui'
|
||||
instance = arglist.pop(0) if arglist[0] and arglist[0] not in serv.services else None
|
||||
if instance is None and len(serv.info) == 1:
|
||||
instance = list(serv.info)[0]
|
||||
if instance is None and serv.main_ins:
|
||||
instance = serv.main_ins
|
||||
if instance is not None:
|
||||
arglist.insert(0, instance)
|
||||
arglist.pop() # remove dummy argument
|
||||
|
Reference in New Issue
Block a user