mirror-chatterino2/src/providers/twitch/TwitchHelpers.cpp
2018-10-21 13:43:02 +02:00

20 lines
374 B
C++

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