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
|
||||
|
||||
@@ -53,6 +53,9 @@ public:
|
||||
|
||||
Communi::IrcConnection *getReadConnection();
|
||||
|
||||
/// Debug function
|
||||
void addFakeMessage(const QString &data);
|
||||
|
||||
private:
|
||||
ChannelManager &channelManager;
|
||||
ResourceManager &resources;
|
||||
|
||||
Reference in New Issue
Block a user