removed case sensitivity of module commands

This commit is contained in:
Daniel Aberger 2016-02-26 19:00:00 +01:00
parent 44ee1cf628
commit 6fc0ac3c9d
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ func coffeeHandleMessage(m *irc.Message) {
if len(tok) < 1 {
return
}
switch tok[0] {
switch strings.ToLower(tok[0]) {
case "!kaffee":
switch len(tok) {
case 1:

View File

@ -146,7 +146,7 @@ func twitchHandleMessage(m *irc.Message) {
if len(tok) < 1 {
return
}
switch tok[0] {
switch strings.ToLower(tok[0]) {
case "!twitch":
switch len(tok) {
case 1:

View File

@ -85,7 +85,7 @@ func weatherHandleMessage(m *irc.Message) {
if len(tok) < 1 {
return
}
switch tok[0] {
switch strings.ToLower(tok[0]) {
case "!weather", "!wetter":
switch len(tok) {
case 1: