QTfrontend/netconnectedclient.cpp
changeset 570 f674e8e5bf28
parent 569 4e41c9e9e4d1
child 571 a6cea9fbbc59
equal deleted inserted replaced
569:4e41c9e9e4d1 570:f674e8e5bf28
   110   }
   110   }
   111 
   111 
   112   if(lst[0]=="HHNUM") {
   112   if(lst[0]=="HHNUM") {
   113     if(!m_hwserver->isChiefClient(this) || lst.size()<4)
   113     if(!m_hwserver->isChiefClient(this) || lst.size()<4)
   114     {
   114     {
   115       qWarning("Net: Bad 'HHNUM' message");
   115       qWarning((QString("Net: Bad 'HHNUM' message: ")+msg).toAscii().data());
   116 	  return; // error or permission denied :)
   116 	  return; // error or permission denied :)
   117 	}
   117 	}
   118     const QString confstr=lst[0]+"+"+lst[1]+"+"+lst[2];
   118     const QString confstr=lst[0]+"+"+lst[1]+"+"+lst[2];
   119     QMap<QString, QStringList>::iterator it=m_hwserver->m_gameCfg.find(confstr);
   119     QMap<QString, QStringList>::iterator it=m_hwserver->m_gameCfg.find(confstr);
   120     int oldTeamHHNum = it==m_hwserver->m_gameCfg.end() ? 0 : it.value()[0].toUInt();
   120     int oldTeamHHNum = it==m_hwserver->m_gameCfg.end() ? 0 : it.value()[0].toUInt();
   125   }
   125   }
   126 
   126 
   127   if(lst[0]=="CONFIG_PARAM") {
   127   if(lst[0]=="CONFIG_PARAM") {
   128     if(!m_hwserver->isChiefClient(this) || lst.size()<3)
   128     if(!m_hwserver->isChiefClient(this) || lst.size()<3)
   129     {
   129     {
   130       qWarning("Net: Bad 'CONFIG_PARAM' message");
   130       qWarning((QString("Net: Bad 'CONFIG_PARAM' message: ")+msg).toAscii().data());
       
   131       //qWarning("Net: Bad 'CONFIG_PARAM' message");
   131 	  return; // error or permission denied :)
   132 	  return; // error or permission denied :)
   132 	}
   133 	}
   133     else m_hwserver->m_gameCfg[lst[1]]=lst.mid(2);
   134     else m_hwserver->m_gameCfg[lst[1]]=lst.mid(2);
   134   }
   135   }
   135 
   136