diff --git a/src/providers/irc/IrcServer.cpp b/src/providers/irc/IrcServer.cpp index 70227d6ce..1af29caf2 100644 --- a/src/providers/irc/IrcServer.cpp +++ b/src/providers/irc/IrcServer.cpp @@ -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,