2018-06-26 14:09:39 +02:00
|
|
|
#include "providers/twitch/TwitchHelpers.hpp"
|
2020-11-21 16:20:10 +01:00
|
|
|
#include "common/QLogging.hpp"
|
2018-03-25 11:37:57 +02:00
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
2018-05-24 08:58:34 +02:00
|
|
|
bool trimChannelName(const QString &channelName, QString &outChannelName)
|
2018-03-25 11:37:57 +02:00
|
|
|
{
|
2018-10-21 13:43:02 +02:00
|
|
|
if (channelName.length() < 2)
|
|
|
|
{
|
2020-11-21 16:20:10 +01:00
|
|
|
qCDebug(chatterinoTwitch) << "channel name length below 2";
|
2018-03-25 11:37:57 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
outChannelName = channelName.mid(1);
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace chatterino
|