diff --git a/server/server/commands.go b/server/server/commands.go index 3e9eee0..c785619 100644 --- a/server/server/commands.go +++ b/server/server/commands.go @@ -36,8 +36,8 @@ func UploadFile(c Client, filename string) error { return nil } -// SendAsciiPic sends an image as ascii text to the client. -func SendAsciiPic(c Client, path string) error { +// SendASCIIPic sends an image as ascii text to the client. +func SendASCIIPic(c Client, path string) error { f, err := os.Open(MakePathFromStringStack(c.Stack()) + path) if err != nil { log.Println(err) @@ -159,6 +159,7 @@ func ChangeDirectoryCommand(c Client, directory string) error { return err } +// ShowHelp writes the help text to the client. func ShowHelp(c Client) error { var helpText = ` The available commands are: diff --git a/server/server/parser.go b/server/server/parser.go index 9c9cf3f..d0906cd 100644 --- a/server/server/parser.go +++ b/server/server/parser.go @@ -53,7 +53,7 @@ func ProcessInput(c Client, text string) error { } // Get the file - err = SendAsciiPic(c, commands[1]) + err = SendASCIIPic(c, commands[1]) if err != nil { return &InputError{thisCommand, err} }