Files
chatterino2/src/providers/twitch/TwitchHelpers.cpp
pajlada 3c8992cac1 Remove FMT dependency (#1472)
All occurrences of log() have been replaced with qDebug()

bonus meme: remove a bunch of std::string usages in the pubsub client

Fixes #1467
2020-01-03 20:51:37 +01:00

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