msg="<font color='grey'>"+QDateTime::currentDateTime().toString(QString::fromUtf8("dd/MM/yyyy hh:mm:ss"))+"</font> - "+tr("<font color='red'>%1</font> was blocked","x.y.z.w was blocked").arg(ip);
if(peerBanMessages.size()>MAX_LOG_MESSAGES){
else
peerBanMessages.removeFirst();
msg="<font color='grey'>"+QDateTime::currentDateTime().toString(QString::fromUtf8("dd/MM/yyyy hh:mm:ss"))+"</font> - "+tr("<font color='red'>%1</font> was banned","x.y.z.w was banned").arg(ip);
}
peerBanMessages.append(msg);
QStringmsg;
emitnewBanMessage(msg);
if(blocked)
#if LIBTORRENT_VERSION_NUM < 10000
msg="<font color='grey'>"+QDateTime::currentDateTime().toString(QString::fromUtf8("dd/MM/yyyy hh:mm:ss"))+"</font> - "+tr("<font color='red'>%1</font> was blocked","x.y.z.w was blocked").arg(ip);
#else
msg="<font color='grey'>"+QDateTime::currentDateTime().toString(QString::fromUtf8("dd/MM/yyyy hh:mm:ss"))+"</font> - "+tr("<font color='red'>%1</font> was blocked %2","x.y.z.w was blocked").arg(ip).arg(blockedReason);
#endif
else
msg="<font color='grey'>"+QDateTime::currentDateTime().toString(QString::fromUtf8("dd/MM/yyyy hh:mm:ss"))+"</font> - "+tr("<font color='red'>%1</font> was banned","x.y.z.w was banned").arg(ip);