mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
7e073f43b6
Fixes #770
19 lines
370 B
C++
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() < 2) {
|
|
log("channel name length below 2");
|
|
return false;
|
|
}
|
|
|
|
outChannelName = channelName.mid(1);
|
|
|
|
return true;
|
|
}
|
|
|
|
} // namespace chatterino
|