mirror of
https://code.dnix.de/da/flokatirc
synced 2026-07-27 09:09:45 +02:00
removed case sensitivity of module commands
This commit is contained in:
+1
-1
@@ -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:
|
||||||
|
|||||||
+1
-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:
|
||||||
|
|||||||
+1
-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:
|
||||||
|
|||||||
Reference in New Issue
Block a user