Skip to content

Commit

Permalink
lowercases only first argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Seklfreak committed Feb 24, 2019
1 parent 1863ac0 commit acfd93a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events/event_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func (e *Event) Parse() {
return
}

for i := range args {
args[i] = strings.ToLower(args[i])
if len(args) >= 1 {
args[0] = strings.ToLower(args[0])
}

// extract fields of command without prefix
Expand Down

0 comments on commit acfd93a

Please sign in to comment.