|
@@ -57,7 +57,7 @@ void Client::print(const QString &msg)
|
|
|
{
|
|
|
QString str;
|
|
|
|
|
|
- str = QString(host()) + ":" + QString::number(port()) + "> " + msg;
|
|
|
+ str = "[" + QTime::currentTime().toString(Qt::ISODate) + "] " + QString(host()) + ":" + QString::number(port()) + "> " + msg;
|
|
|
QByteArray b = str.toAscii();
|
|
|
Client::stripColor(b.data());
|
|
|
str = QString::fromAscii(b.data());
|
|
@@ -164,7 +164,6 @@ void Client::parsePrintedLine()
|
|
|
say("> Commands:");
|
|
|
say("> Broadcast a message: .qw <message> and .spam <message>, beware of the floodprot limits 600s for .qw and 300s for .spam");
|
|
|
say("> Mute/Unmute: .qw_mute and .qw_unmute or .spam_mute or .spam_unmute");
|
|
|
- say("> .help to show this help message.");
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -251,7 +250,7 @@ void Client::onPrint(int, const char *msg)
|
|
|
{
|
|
|
myPrintLine.append(text);
|
|
|
parsePrintedLine();
|
|
|
- print(myPrintLine);
|
|
|
+ print(myPrintLine);
|
|
|
myPrintLine.clear();
|
|
|
}
|
|
|
else
|