public void AddFriend( Mobile from, Mobile targ )
{
if ( !IsCoOwner( from ) || m_Friends == null || m_CoOwners == null )
return;
if ( IsOwner( targ ) )
{
from.SendLocalizedMessage( 501370 ); // This person is already an owner of the house!
}
else if ( m_CoOwners.Contains( targ ) )
{
from.SendLocalizedMessage( 501369 ); // This person is already on your co-owner list!
}
else if ( !targ.Player )
{
from.SendLocalizedMessage( 501371 ); // That can't be a friend of the house.
}
else if ( IsBanned( targ ) )
{
from.SendLocalizedMessage( 501374 ); // This person is banned! Unban them first.
}
else if ( m_Friends.Count >= MaxFriends )
{
from.SendLocalizedMessage( 501375 ); // Your friends list is full!
}
else if ( m_Friends.Contains( targ ) )
{
from.SendLocalizedMessage( 501376 ); // This person is already on your friends list!
}
else
{
m_Friends.Add( targ );
targ.Delta( MobileDelta.Noto );
targ.SendLocalizedMessage( 501337 ); // You have been made a friend of this house.
}
}