Skip to content

Commit

Permalink
Always uppercase the command
Browse files Browse the repository at this point in the history
  • Loading branch information
belak committed Jan 9, 2017
1 parent b361821 commit 352d84b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func ParseMessage(line string) (*Message, error) {

// Because of how it's parsed, the Command will show up as the
// first arg.
c.Command = c.Params[0]
c.Command = strings.ToUpper(c.Params[0])
c.Params = c.Params[1:]

return c, nil
Expand Down

0 comments on commit 352d84b

Please sign in to comment.