improved bad message show
authordisplacer
Thu, 16 Aug 2007 12:42:22 +0000
changeset 570 f674e8e5bf28
parent 569 4e41c9e9e4d1
child 571 a6cea9fbbc59
improved bad message show
QTfrontend/netconnectedclient.cpp
--- a/QTfrontend/netconnectedclient.cpp	Thu Aug 16 11:36:25 2007 +0000
+++ b/QTfrontend/netconnectedclient.cpp	Thu Aug 16 12:42:22 2007 +0000
@@ -112,7 +112,7 @@
   if(lst[0]=="HHNUM") {
     if(!m_hwserver->isChiefClient(this) || lst.size()<4)
     {
-      qWarning("Net: Bad 'HHNUM' message");
+      qWarning((QString("Net: Bad 'HHNUM' message: ")+msg).toAscii().data());
 	  return; // error or permission denied :)
 	}
     const QString confstr=lst[0]+"+"+lst[1]+"+"+lst[2];
@@ -127,7 +127,8 @@
   if(lst[0]=="CONFIG_PARAM") {
     if(!m_hwserver->isChiefClient(this) || lst.size()<3)
     {
-      qWarning("Net: Bad 'CONFIG_PARAM' message");
+      qWarning((QString("Net: Bad 'CONFIG_PARAM' message: ")+msg).toAscii().data());
+      //qWarning("Net: Bad 'CONFIG_PARAM' message");
 	  return; // error or permission denied :)
 	}
     else m_hwserver->m_gameCfg[lst[1]]=lst.mid(2);