1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 09:57:24 +00:00

Use cmdPrefix instead of hardcoded /

This commit is contained in:
2019-10-18 07:40:47 -04:00
parent 05764f85d9
commit 931582ed67

View File

@ -21,7 +21,7 @@ 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]))
printToView("Feed", fmt.Sprintf("%s%s $messageId $fileName - Download a file to user's downloadpath", cmdPrefix, cmd[0]))
return
}
messageID, _ := strconv.Atoi(cmd[1])