go: Fix compare command names after forcing lowercase

master
Luther Wen Xu 2019-10-12 20:34:37 +07:00
parent 0272d11a44
commit cc2c90c4e3
Signed by untrusted user: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 1 additions and 1 deletions

@ -16,7 +16,7 @@ func ProcessCommand(s *discordgo.Session, m *discordgo.MessageCreate) {
command := strings.Split(m.Content, " ") command := strings.Split(m.Content, " ")
for _, v := range modules.Commands { for _, v := range modules.Commands {
if v.Name == strings.toLower(command[0]) { if v.Name == strings.ToLower(command[0]) {
v.Handler(s, m, command) v.Handler(s, m, command)
return return
} }