My command is xdcc get url and my error is invalid number of arguments I changed xdcc/xdcc.go line 61 from if len(args) != XdccSendResArgs { to if len(args) < XdccSendResArgs { and now the error is strconv.Atoi: parsing "HIDDENTEXT": invalid syntax so I added this above line 60 fmt.Printf("\n\narguments: got %d, want >= %d\n\n", len(args), XdccSendResArgs) and this under line 243 fmt.Printf("Raw CTCP line: %q\n", line.Text()) now my output is
Raw CTCP line: "SEND \"[SomeText] Some Text - Number [NumberText].Text\" Number Number Number"
arguments: got 9, want >= 4
strconv.Atoi: parsing "HIDDENTEXT": invalid syntax
This allows me to conclude that currently files with spaces in the name cannot be downloaded.
However using the help of chatgpt I have fixed it and will go ahead and open a PR now.
My command is
xdcc get urland my error isinvalid number of argumentsI changedxdcc/xdcc.goline 61 fromif len(args) != XdccSendResArgs {toif len(args) < XdccSendResArgs {and now the error isstrconv.Atoi: parsing "HIDDENTEXT": invalid syntaxso I added this above line 60fmt.Printf("\n\narguments: got %d, want >= %d\n\n", len(args), XdccSendResArgs)and this under line 243fmt.Printf("Raw CTCP line: %q\n", line.Text())now my output isThis allows me to conclude that currently files with spaces in the name cannot be downloaded.
However using the help of chatgpt I have fixed it and will go ahead and open a PR now.