Make twitch channel string case insensitive (#6223)

Fixes #6200
This commit is contained in:
Arthur Tyukayev
2018-10-27 23:43:31 -07:00
committed by Tomas Slusny
parent 7c0b29b69c
commit cbab200ad5

View File

@@ -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;