Fix "addFakeMessage" for privmsgs

This commit is contained in:
Rasmus Karlsson
2018-06-24 14:24:40 +00:00
parent a505adf26c
commit a5983e3876
2 changed files with 10 additions and 3 deletions
+5 -1
View File
@@ -242,7 +242,11 @@ void AbstractIrcServer::addFakeMessage(const QString &data)
{
auto fakeMessage = Communi::IrcMessage::fromData(data.toUtf8(), this->readConnection_.get());
this->messageReceived(fakeMessage);
if (fakeMessage->command() == "PRIVMSG") {
this->privateMessageReceived(static_cast<Communi::IrcPrivateMessage *>(fakeMessage));
} else {
this->messageReceived(fakeMessage);
}
}
void AbstractIrcServer::privateMessageReceived(Communi::IrcPrivateMessage *message)