F5 adds a fake message to the IRCManager

current messages have valid cheermotes in them
This commit is contained in:
Rasmus Karlsson
2018-01-12 19:15:21 +01:00
parent 83763cf9a9
commit 54502bc8b5
3 changed files with 31 additions and 0 deletions
+8
View File
@@ -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