From e637ff188c83732459e33deedc5a510a948cf061 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sat, 23 Nov 2013 13:30:24 +0200 Subject: [PATCH] Output a more generic message when blocking IPs and don't use italics in the log. --- src/qtlibtorrent/qbtsession.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qtlibtorrent/qbtsession.cpp b/src/qtlibtorrent/qbtsession.cpp index 55be6d9dd..6067f4669 100755 --- a/src/qtlibtorrent/qbtsession.cpp +++ b/src/qtlibtorrent/qbtsession.cpp @@ -1667,7 +1667,7 @@ void QBtSession::addConsoleMessage(QString msg, QColor color) { if (consoleMessages.size() > MAX_LOG_MESSAGES) { consoleMessages.removeFirst(); } - msg = ""+ QDateTime::currentDateTime().toString(QString::fromUtf8("dd/MM/yyyy hh:mm:ss")) + " - " + msg + ""; + msg = ""+ QDateTime::currentDateTime().toString(QString::fromUtf8("dd/MM/yyyy hh:mm:ss")) + " - " + msg + ""; consoleMessages.append(msg); emit newConsoleMessage(msg); #endif @@ -1679,9 +1679,9 @@ void QBtSession::addPeerBanMessage(QString ip, bool from_ipfilter) { } QString msg; if (from_ipfilter) - msg = "" + QDateTime::currentDateTime().toString(QString::fromUtf8("dd/MM/yyyy hh:mm:ss")) + " - " + tr("%1 was blocked due to your IP filter", "x.y.z.w was blocked").arg(ip); + msg = "" + QDateTime::currentDateTime().toString(QString::fromUtf8("dd/MM/yyyy hh:mm:ss")) + " - " + tr("%1 was blocked", "x.y.z.w was blocked").arg(ip); else - msg = "" + QDateTime::currentDateTime().toString(QString::fromUtf8("dd/MM/yyyy hh:mm:ss")) + " - " + tr("%1 was banned due to corrupt pieces", "x.y.z.w was banned").arg(ip); + msg = "" + QDateTime::currentDateTime().toString(QString::fromUtf8("dd/MM/yyyy hh:mm:ss")) + " - " + tr("%1 was banned", "x.y.z.w was banned").arg(ip); peerBanMessages.append(msg); emit newBanMessage(msg); }