mirror-chatterino2/src/providers/twitch/TwitchHelpers.cpp
2018-06-26 17:06:17 +02:00

19 lines
370 B
C++

#include "providers/twitch/TwitchHelpers.hpp"
#include "debug/Log.hpp"
namespace chatterino {
bool trimChannelName(const QString &channelName, QString &outChannelName)
{
if (channelName.length() < 3) {
Log("channel name length below 3");
return false;
}
outChannelName = channelName.mid(1);
return true;
}
} // namespace chatterino