United Nations (CNN) -- The United Nations said Friday it is studying Libya's request to install a more loyal diplomat as its ambassador.
A letter from Libya's government asked that former Foreign Minister Ali Abdussalam Treki be approved as its envoy. Treki, who recently served as the president of the U.N. General Assembly, would replace Mohamed Shalgham as ambassador in New York.
Shalgham and his deputy, Ibrahim Dabbashi, have denounced Gadhafi and requested that he step down as Libya's leader.
There was no indication what might happen to the New York-based diplomats if Treki is approved.
A separate letter from Libya to the United Nations demanded that Shalgham and Dabbashi be denied the right to speak for Libya. In emotional scenes last week, the New York-based ambassadors were hugged by fellow ambassadors after the Libyans criticized Gadhafi and pleaded in the Security Council chamber for international assistance for the country.
Shalgham had been a lifelong friend of Gadhafi; Dabbashi said this week the Libyan leader is no longer loved even by his own family.
U.N. spokesman Martin Nesirky said the situation "is complicated" and the world body's legal office was looking into the dueling diplomats' situation.
The spokesman said that Libya is a sovereign, recognized member of the United Nations and has the right to revoke its representative and appoint whom it wants. "We need to look at the ramifications," Nesirky said.
One Security Council diplomat said the identity of the Libyan ambassador in New York means little. The diplomat said everyone knows where the real front lines are, referring to the battles being waged in the streets of Libya.