Skip to content

Commit

Permalink
Warn if the client is not in the region that the status updates are b…
Browse files Browse the repository at this point in the history
…eing sent to.
  • Loading branch information
Revolution Smythe committed May 12, 2013
1 parent f84bcba commit aaa64f4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Aurora/Modules/Avatar/Friends/FriendsModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,17 @@ public void SendFriendsStatusMessage(UUID FriendToInformID, UUID userID, bool on
//MainConsole.Instance.DebugFormat("[FRIENDS]: Local Status Notify {0} that user {1} is {2}", friendID, userID, online);
// the friend in this sim as root agent
if (online)
friendClient.SendAgentOnline(new[] {userID});
friendClient.SendAgentOnline(new[] { userID });
else
friendClient.SendAgentOffline(new[] {userID});
friendClient.SendAgentOffline(new[] { userID });
// we're done
return;
}
else
{
MainConsole.Instance.ErrorFormat("[FriendsModule]: Could not send status update ({2}) to non-existant client {0} for {1}.",
FriendToInformID, userID, "user is " + (online ? "online" : "offline"));
}
}

public FriendInfo[] GetFriends(UUID agentID)
Expand Down

0 comments on commit aaa64f4

Please sign in to comment.