Browse Source

Bugfix: another command crashes kbtui #19

pull/21/head^2
Gregory Rudolph 5 years ago
parent
commit
dd634fd06b
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 5
      cmdDownload.go

5
cmdDownload.go

@ -19,6 +19,11 @@ func init() { @@ -19,6 +19,11 @@ func init() {
}
func cmdDownloadFile(cmd []string) {
if len(cmd) < 2 {
printToView("Feed", fmt.Sprintf("/%s $messageId $fileName - Download a file to user's downloadpath", cmd[0]))
return
}
messageID, _ := strconv.Atoi(cmd[1])
var fileName string
if len(cmd) == 3 {

Loading…
Cancel
Save