F5 adds a fake message to the IRCManager
current messages have valid cheermotes in them
This commit is contained in:
@@ -404,5 +404,13 @@ Communi::IrcConnection *IrcManager::getReadConnection()
|
||||
return this->readConnection.get();
|
||||
}
|
||||
|
||||
void
|
||||
IrcManager::addFakeMessage(const QString &data)
|
||||
{
|
||||
auto fakeMessage = Communi::IrcMessage::fromData(data.toUtf8(), this->readConnection.get());
|
||||
|
||||
this->privateMessageReceived(qobject_cast<Communi::IrcPrivateMessage*>(fakeMessage));
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user