QTfrontend/netserver.cpp
changeset 332 10080f681118
parent 326 c6718bfdd642
child 334 85eacbd9827f
--- a/QTfrontend/netserver.cpp	Sun Jan 14 18:32:44 2007 +0000
+++ b/QTfrontend/netserver.cpp	Sun Jan 14 18:45:13 2007 +0000
@@ -76,9 +76,11 @@
 bool HWNetServer::isChiefClient(HWConnectedClient* cl) const
 {
   for(QList<HWConnectedClient*>::const_iterator it=connclients.begin(); it!=connclients.end(); ++it) {
-    if((*it)->getClientNick()!="" && *it==cl)  return true;
+    // watch for first fully connected client (with confirmed nick) and test it for chief
+    if((*it)->getClientNick()=="") continue;
+    if(*it==cl) return true;
+    else return false;
   }
-  return false;
 }
 
 bool HWNetServer::haveNick(const QString& nick) const