private String ExtractTagOrFriendex(PlayerModel m)
{
/*
For the swapper code, it is convenient to treat the Friend Index (Friendex) like a tag.
The value of the index is formatted into a string "[x]", which should be impossible for real tags
*/
if (m == null) return String.Empty;
String tagOrFriendex = ExtractTag(m);
if (KeepSquadsTogether || !KeepClanTagsInSameTeam) return tagOrFriendex;
if (KeepFriendsInSameTeam && String.IsNullOrEmpty(tagOrFriendex) && m.Friendex != -1) {
tagOrFriendex = String.Format("[{0}]", m.Friendex);
//DebugScrambler("Using friendex ^b" + tagOrFriendex + "^n for ^b" + m.FullName);
}
return tagOrFriendex;
}