Skip to content

Files with spaces in the name cannot be downloaded #12

@samirbilalmemon

Description

@samirbilalmemon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions