Skip to content
This repository has been archived by the owner on Aug 29, 2019. It is now read-only.

Commit

Permalink
~ Command in lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Kiryukhin committed Dec 22, 2018
1 parent 11849c8 commit 3e887a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ func ParseCommand(event *IMEvent) (*Command, bool) {
if parts[0][0] != '.' && parts[0][0] != '/' {
return nil, false
}

cmd := string(parts[0][1:])
return &Command{
From: event.Data.Source.AimID,
Command: string(parts[0][1:]),
Command: strings.ToLower(cmd),
Arguments: parts[1:],
}, true
}

0 comments on commit 3e887a7

Please sign in to comment.