mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
deal with quotes in to command
This commit is contained in:
parent
8456d47af1
commit
3cd10501a2
1 changed files with 2 additions and 0 deletions
|
|
@ -456,6 +456,8 @@ Line starting with \"$\" or \".\" will issue a meshcli command.
|
|||
pc = prev_contact
|
||||
prev_contact = contact
|
||||
dest = line[3:]
|
||||
if dest.startswith("\"") or dest.startswith("\'") : # if name starts with a quote
|
||||
dest = shlex.split(dest)[0] # use shlex.split to get contact name between quotes
|
||||
nc = mc.get_contact_by_name(dest)
|
||||
if nc is None:
|
||||
if dest == "public" :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue