--- 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;
}