mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
df722a72c1
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
20 lines
404 B
C++
20 lines
404 B
C++
#include "providers/twitch/TwitchHelpers.hpp"
|
|
#include "common/QLogging.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
bool trimChannelName(const QString &channelName, QString &outChannelName)
|
|
{
|
|
if (channelName.length() < 2)
|
|
{
|
|
qCDebug(chatterinoTwitch) << "channel name length below 2";
|
|
return false;
|
|
}
|
|
|
|
outChannelName = channelName.mid(1);
|
|
|
|
return true;
|
|
}
|
|
|
|
} // namespace chatterino
|