QTfrontend/newnetclient.cpp
changeset 1815 3d62cf9c350e
parent 1814 e5391d901cff
child 1816 be39d409b675
equal deleted inserted replaced
1814:e5391d901cff 1815:3d62cf9c350e
   257 		}
   257 		}
   258 		emit serverMessage(lst[1]);
   258 		emit serverMessage(lst[1]);
   259 		return;
   259 		return;
   260 	}
   260 	}
   261 
   261 
   262 	if (lst[0] == "CHAT_STRING") {
   262 	if (lst[0] == "CHAT") {
   263 		if(lst.size() < 3)
   263 		if(lst.size() < 3)
   264 		{
   264 		{
   265 			qWarning("Net: Empty CHAT_STRING message");
   265 			qWarning("Net: Empty CHAT message");
   266 			return;
   266 			return;
   267 		}
   267 		}
   268 		if (netClientState == 2)
   268 		if (netClientState == 2)
   269 			emit chatStringLobby(formatChatMsg(lst[1], lst[2]));
   269 			emit chatStringLobby(formatChatMsg(lst[1], lst[2]));
   270 		else
   270 		else
   667 }
   667 }
   668 
   668 
   669 void HWNewNet::chatLineToNet(const QString& str)
   669 void HWNewNet::chatLineToNet(const QString& str)
   670 {
   670 {
   671 	if(str != "") {
   671 	if(str != "") {
   672 		RawSendNet(QString("CHAT_STRING") + delimeter + str);
   672 		RawSendNet(QString("CHAT") + delimeter + str);
   673 		emit(chatStringFromMe(formatChatMsg(mynick, str)));
   673 		emit(chatStringFromMe(formatChatMsg(mynick, str)));
   674 	}
   674 	}
   675 }
   675 }
   676 
   676 
   677 void HWNewNet::chatLineToLobby(const QString& str)
   677 void HWNewNet::chatLineToLobby(const QString& str)
   678 {
   678 {
   679 	if(str != "") {
   679 	if(str != "") {
   680 		RawSendNet(QString("CHAT_STRING") + delimeter + str);
   680 		RawSendNet(QString("CHAT") + delimeter + str);
   681 		emit(chatStringFromMeLobby(formatChatMsg(mynick, str)));
   681 		emit(chatStringFromMeLobby(formatChatMsg(mynick, str)));
   682 	}
   682 	}
   683 }
   683 }
   684 
   684 
   685 void HWNewNet::askRoomsList()
   685 void HWNewNet::askRoomsList()