From 19a2b2eb61f151f599aa054196b74b6e54684fd3 Mon Sep 17 00:00:00 2001 From: zneix Date: Sat, 31 Jul 2021 01:59:57 +0200 Subject: [PATCH] You can no longer just append int to a QString --- src/providers/irc/IrcServer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,