equal
deleted
inserted
replaced
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])) { |