QTfrontend/newnetclient.cpp
changeset 453 4b1236759402
parent 448 e968e19a464c
child 455 925891c52e40
--- a/QTfrontend/newnetclient.cpp	Sun Feb 18 15:28:47 2007 +0000
+++ b/QTfrontend/newnetclient.cpp	Sun Feb 18 16:57:43 2007 +0000
@@ -159,6 +159,13 @@
     return;
   }
 
+  if (lst[0] == "CHAT_STRING") {
+    lst.pop_front();
+    if(lst.size() < 2) return;
+    emit chatStringFromNet(lst);
+    return;
+  }
+
   if (lst[0] == "ADDTEAM:") {
     lst.pop_front();
     emit AddNetTeam(lst);
@@ -344,3 +351,11 @@
 {
   RawSendNet(QString("CONFIG_PARAM%1FORTSMODE%1%2").arg(delimeter).arg(value));
 }
+
+void HWNewNet::chatLineToNet(const QString& str)
+{
+  if(str!="") {
+    RawSendNet(QString("CHAT_STRING")+delimeter+mynick+delimeter+str);
+    emit(chatStringFromNet(QStringList(mynick) << str));
+  }
+}