QTfrontend/netserver.cpp
changeset 349 5b37d6a39829
parent 347 6521e1b2cd40
child 350 c3ccec3834e8
equal deleted inserted replaced
348:c91b983de18f 349:5b37d6a39829
   203     client_nick=lst[1];
   203     client_nick=lst[1];
   204     qDebug() << "send connected";
   204     qDebug() << "send connected";
   205     RawSendNet(QString("CONNECTED"));
   205     RawSendNet(QString("CONNECTED"));
   206     if(m_hwserver->isChiefClient(this)) RawSendNet(QString("CONFIGASKED"));
   206     if(m_hwserver->isChiefClient(this)) RawSendNet(QString("CONFIGASKED"));
   207     else {
   207     else {
       
   208       RawSendNet(QString("SLAVE"));
   208       // send config
   209       // send config
   209       QMap<QString, QString> conf=m_hwserver->getGameCfg();
   210       QMap<QString, QString> conf=m_hwserver->getGameCfg();
   210       for(QMap<QString, QString>::iterator it=conf.begin(); it!=conf.end(); ++it) {
   211       for(QMap<QString, QString>::iterator it=conf.begin(); it!=conf.end(); ++it) {
   211 	RawSendNet(QString("CONFIG_PARAM")+delimeter+it.key()+delimeter+it.value());
   212 	RawSendNet(QString("CONFIG_PARAM")+delimeter+it.key()+delimeter+it.value());
   212       }
   213       }