mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
bug with all commands begining with s
This commit is contained in:
parent
fb849f8b72
commit
ec585f34e8
1 changed files with 3 additions and 1 deletions
|
|
@ -1158,7 +1158,7 @@ async def process_contact_chat_line(mc, contact, line):
|
||||||
print("")
|
print("")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if line.startswith("sleep") or line.startswith("s"):
|
if line.startswith("sleep ") or line.startswith("s "):
|
||||||
try:
|
try:
|
||||||
sleeptime = int(line.split(" ",2)[1])
|
sleeptime = int(line.split(" ",2)[1])
|
||||||
cmd_pos = 2
|
cmd_pos = 2
|
||||||
|
|
@ -1219,6 +1219,8 @@ async def process_contact_chat_line(mc, contact, line):
|
||||||
|
|
||||||
if line.startswith("set timeout "):
|
if line.startswith("set timeout "):
|
||||||
cmds=line.split(" ")
|
cmds=line.split(" ")
|
||||||
|
#args = ["contact_timeout", contact['adv_name'], cmds[2]]
|
||||||
|
#await process_cmds(mc, args)
|
||||||
contact["timeout"] = float(cmds[2])
|
contact["timeout"] = float(cmds[2])
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue