QTfrontend/net/newnetclient.cpp
changeset 8299 ef2e284255cd
parent 8291 e4a0d980d1e2
child 8303 6331bceac95c
--- a/QTfrontend/net/newnetclient.cpp	Fri Dec 14 18:57:31 2012 +0100
+++ b/QTfrontend/net/newnetclient.cpp	Fri Dec 14 21:09:07 2012 +0100
@@ -241,6 +241,7 @@
     {
         mynick = lst[1];
         m_playersModel->setNickname(mynick);
+        m_nick_registered = false;
         return ;
     }
 
@@ -304,6 +305,10 @@
         QStringList tmp = lst;
         tmp.removeFirst();
         m_roomsListModel->setRoomsList(tmp);
+        if (m_nick_registered == false)
+        {
+            emit NickNotRegistered(mynick);
+        }
         return;
     }
 
@@ -539,6 +544,7 @@
     if (lst[0] == "ASKPASSWORD")
     {
         emit NickRegistered(mynick);
+        m_nick_registered = true;
         return;
     }