3c8992cac1
All occurrences of log() have been replaced with qDebug() bonus meme: remove a bunch of std::string usages in the pubsub client Fixes #1467
19 lines
356 B
C++
19 lines
356 B
C++
#include "providers/twitch/TwitchHelpers.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
bool trimChannelName(const QString &channelName, QString &outChannelName)
|
|
{
|
|
if (channelName.length() < 2)
|
|
{
|
|
qDebug() << "channel name length below 2";
|
|
return false;
|
|
}
|
|
|
|
outChannelName = channelName.mid(1);
|
|
|
|
return true;
|
|
}
|
|
|
|
} // namespace chatterino
|