QTfrontend/netserver.cpp
changeset 391 e7565bb852a2
parent 388 dcf5335940bd
child 399 c7da1bd32b4e
equal deleted inserted replaced
390:dca6bd77d71d 391:e7565bb852a2
   203 
   203 
   204 void HWConnectedClient::ParseLine(const QByteArray & line)
   204 void HWConnectedClient::ParseLine(const QByteArray & line)
   205 {
   205 {
   206   QString msg = QString::fromUtf8 (line.data(), line.size());
   206   QString msg = QString::fromUtf8 (line.data(), line.size());
   207 
   207 
   208   qDebug() << "line " << msg << " received";
       
   209 
       
   210   QStringList lst = msg.split(delimeter);
   208   QStringList lst = msg.split(delimeter);
   211   if(!lst.size()) return;
   209   if(!lst.size()) return;
   212   if (lst[0] == "NICK") {
   210   if (lst[0] == "NICK") {
   213     if(lst.size()<2) return;
   211     if(lst.size()<2) return;
   214     if(m_hwserver->haveNick(lst[1])) {
   212     if(m_hwserver->haveNick(lst[1])) {