Make twitch channel string case insensitive (#6223)

Fixes #6200
This commit is contained in:
Arthur Tyukayev
2018-10-28 07:43:31 +01:00
committed by Tomas Slusny
parent 7c0b29b69c
commit cbab200ad5
@@ -101,7 +101,7 @@ public class TwitchPlugin extends Plugin implements TwitchListener, ChatboxInput
&& twitchConfig.oauthToken() != null
&& twitchConfig.channel() != null)
{
String channel = twitchConfig.channel();
String channel = twitchConfig.channel().toLowerCase();
if (!channel.startsWith("#"))
{
channel = "#" + channel;