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

@ -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]))