You can no longer just append int to a QString

This commit is contained in:
zneix 2021-07-31 01:59:57 +02:00
parent efc376138a
commit 19a2b2eb61
No known key found for this signature in database
GPG key ID: 911916E0523B22F6

View file

@ -85,7 +85,8 @@ void IrcServer::initializeConnectionSignals(IrcConnection *connection,
QObject::connect(connection, &Communi::IrcConnection::nickNameRequired,
this, [](const QString &reserved, QString *result) {
*result = reserved + (std::rand() % 100);
*result =
reserved + QString::number(std::rand() % 100);
});
QObject::connect(connection, &Communi::IrcConnection::noticeMessageReceived,