mirror-chatterino2/src/providers/twitch/TwitchHelpers.cpp

20 lines
374 B
C++
Raw Normal View History

2018-06-26 14:09:39 +02:00
#include "providers/twitch/TwitchHelpers.hpp"
#include "debug/Log.hpp"
namespace chatterino {
2018-05-24 08:58:34 +02:00
bool trimChannelName(const QString &channelName, QString &outChannelName)
{
2018-10-21 13:43:02 +02:00
if (channelName.length() < 2)
{
log("channel name length below 2");
return false;
}
outChannelName = channelName.mid(1);
return true;
}
} // namespace chatterino