private void TreatUploadMusic(Socket socket, UploadMusic uploadMusic) { if (Indexation.AddElement(uploadMusic) && (int)Program.MyServer.Clients.GetUser(socket).Rank > 1) { new UploadReport(null, true).Send(socket); Program.MyServer.Log.Warn($"The music { uploadMusic.MusicPart.Name } has been upload"); } else { new UploadReport(null, false).Send(socket); Program.MyServer.Log.Warn($"The music { uploadMusic.MusicPart.Name } has been upload"); Program.MyServer.Log.Warn("Upload completed with success"); } }