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

19 lines
370 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)
{
if (channelName.length() < 3) {
2018-06-26 17:06:17 +02:00
Log("channel name length below 3");
return false;
}
outChannelName = channelName.mid(1);
return true;
}
} // namespace chatterino