diff --git a/bitbot/flipTable.go b/bitbot/flipTable.go index 61feb94..d69f716 100644 --- a/bitbot/flipTable.go +++ b/bitbot/flipTable.go @@ -8,7 +8,7 @@ var TableFlipTrigger = NamedTrigger{ ID: "tableflip", Help: "Flip a table. Usage: !tableflip", Condition: func(irc *hbot.Bot, m *hbot.Message) bool { - match := ("!tableflip" == m.Content) + match := (m.Content == "!tableflip") return m.Command == "PRIVMSG" && match }, Action: func(irc *hbot.Bot, m *hbot.Message) bool { @@ -20,7 +20,7 @@ var TableFlipTrigger = NamedTrigger{ var TableUnflipTrigger = NamedTrigger{ ID: "unflip", Condition: func(irc *hbot.Bot, m *hbot.Message) bool { - match := ("!unflip" == m.Content) + match := (m.Content == "!unflip") return m.Command == "PRIVMSG" && match }, Action: func(irc *hbot.Bot, m *hbot.Message) bool {