Exemplo n.º 1
0
 static public void SendLoginResult(LobbyClient client, string Email, bool result)
 {
     if (!result)
     {
         Log.Error("ASK_LOGN", "Compte introuvable !");
         ANS_LOGIN_FAILED.Send(client, 10010);
         client.Disconnect();
     }
     else
     {
         Log.Success("ASK_LOGN", "Authentification en cours.");
         client.Account = Program.CharMgr.GetAccount(Email);
         if (client.Account == null)
         {
             SendLoginResult(client, Email, false);
         }
         else
         {
             LOGIN_SALT.Send(client);
         }
     }
 }