bad cast in ch cmd

This commit is contained in:
Florent 2025-04-07 13:37:24 +02:00
parent 04614e9c49
commit 0060fd5af3
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "meshcore-cli"
version = "0.3.3"
version = "0.3.4"
authors = [
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
]

View file

@ -96,7 +96,7 @@ async def next_cmd(mc, cmds):
cmds[2]))
case "chan_msg"|"ch" :
argnum = 2
print(await mc.send_chan_msg(cmds[1], cmds[2]))
print(await mc.send_chan_msg(int(cmds[1]), cmds[2]))
case "def_chan_msg"|"def_chan"|"dch" : # default chan
argnum = 1
print(await mc.send_chan_msg(0, cmds[1]))