From 352d84b97f8d88aa3a44d43ea45ac98c0f61e42a Mon Sep 17 00:00:00 2001 From: Kaleb Elwert Date: Mon, 9 Jan 2017 15:29:36 -0800 Subject: [PATCH] Always uppercase the command --- parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.go b/parser.go index 4204630..2b1a550 100644 --- a/parser.go +++ b/parser.go @@ -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