forked from an/flokati
removed case sensitivity of module commands
This commit is contained in:
parent
44ee1cf628
commit
6fc0ac3c9d
|
@ -24,7 +24,7 @@ func coffeeHandleMessage(m *irc.Message) {
|
||||||
if len(tok) < 1 {
|
if len(tok) < 1 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
switch tok[0] {
|
switch strings.ToLower(tok[0]) {
|
||||||
case "!kaffee":
|
case "!kaffee":
|
||||||
switch len(tok) {
|
switch len(tok) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
@ -146,7 +146,7 @@ func twitchHandleMessage(m *irc.Message) {
|
||||||
if len(tok) < 1 {
|
if len(tok) < 1 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
switch tok[0] {
|
switch strings.ToLower(tok[0]) {
|
||||||
case "!twitch":
|
case "!twitch":
|
||||||
switch len(tok) {
|
switch len(tok) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
@ -85,7 +85,7 @@ func weatherHandleMessage(m *irc.Message) {
|
||||||
if len(tok) < 1 {
|
if len(tok) < 1 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
switch tok[0] {
|
switch strings.ToLower(tok[0]) {
|
||||||
case "!weather", "!wetter":
|
case "!weather", "!wetter":
|
||||||
switch len(tok) {
|
switch len(tok) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
Loading…
Reference in New Issue