protected void OfflineNotificationHandler(Object sender, PacketReceivedEventArgs e)
{
Packet packet = e.getPacket();
if (packet.Type == PacketType.OfflineNotification)
{
OfflineNotificationPacket notification = (OfflineNotificationPacket)packet;
for (OfflineNotificationPacket.AgentBlockBlock block : notification.AgentBlock)
{
FriendInfo friend = new FriendInfo(block.AgentID, FriendRights.get(FriendRights.CanSeeOnline.getIndex()),
FriendRights.get(FriendRights.CanSeeOnline.getIndex()));