diff -r a02353129a41 -r e3e37c730dc0 QTfrontend/newnetclient.cpp --- a/QTfrontend/newnetclient.cpp Sat Jan 03 19:01:50 2009 +0000 +++ b/QTfrontend/newnetclient.cpp Sat Jan 03 20:48:37 2009 +0000 @@ -269,6 +269,21 @@ return; } + if (lst[0] == "INFO") { + if(lst.size() < 2) + { + qWarning("Net: Empty INFO message"); + return; + } + QStringList tmp = lst; + tmp.removeFirst(); + if (netClientState == 2) + emit chatStringLobby(tmp.join("\n")); + else + emit chatStringFromNet(tmp.join("\n")); + return; + } + if (lst[0] == "READY") { if(lst.size() != 2) { @@ -642,6 +657,11 @@ RawSendNet(QString("KICK%1%2").arg(delimeter).arg(nick)); } +void HWNewNet::infoPlayer(const QString & nick) +{ + RawSendNet(QString("INFO%1%2").arg(delimeter).arg(nick)); +} + void HWNewNet::startGame() { RawSendNet(QString("START_GAME"));