QTfrontend/newnetclient.cpp
changeset 1356 77ab8735401d
parent 1354 a8dcdeb88a43
child 1360 d3e285281c26
--- a/QTfrontend/newnetclient.cpp	Wed Oct 15 11:54:06 2008 +0000
+++ b/QTfrontend/newnetclient.cpp	Wed Oct 15 15:02:39 2008 +0000
@@ -239,9 +239,7 @@
 		qWarning("Net: Empty CHAT_STRING message");
 		return;
 		}
-		QStringList tmp = lst;
-		tmp.removeFirst();
-		emit chatStringFromNet(tmp);
+		emit chatStringFromNet(QString("%1: %2").arg(lst[1]).arg(lst[2]));
 		return;
 	}
 
@@ -290,6 +288,7 @@
 					ConfigAsked();
 			}
 			emit nickAdded(lst[i]);
+			emit chatStringFromNet(QString(tr("* %1 joined")).arg(lst[i]));
 		}
 		return;
 	}
@@ -301,6 +300,7 @@
 			return;
 		}
 		emit nickRemoved(lst[1]);
+		emit chatStringFromNet(QString(tr("* %1 left")).arg(lst[1]));
 		return;
 	}
 
@@ -482,7 +482,7 @@
 {
   if(str!="") {
     RawSendNet(QString("CHAT_STRING")+delimeter+str);
-    emit(chatStringFromNet(QStringList(mynick) << str));
+    emit(chatStringFromNet(QString("%1: %2").arg(mynick).arg(str)));
   }
 }