Example #1
0
 /// <summary>
 /// Checks if a given user is friends with this user.
 /// </summary>
 /// <param name="RequireLoggedIn">If true then the user must also be online.</param>
 /// <returns>True if the user is on the friends list (and online if required), false otherwise.</returns>
 public bool IsFriendsWith(Habbo User, bool RequireLoggedIn)
 {
     if (!this.fFriends.ContainsKey(User.GetID()))
         return false;
     if (RequireLoggedIn)
         return User.IsLoggedIn();
     return true;
 }