protected void OnlineNotificationHandler(Object sender, PacketReceivedEventArgs e)
{
Packet packet = e.getPacket();
if (packet.Type == PacketType.OnlineNotification)
{
OnlineNotificationPacket notification = ((OnlineNotificationPacket)packet);
for (OnlineNotificationPacket.AgentBlockBlock block : notification.AgentBlock)
{
FriendInfo friend;
synchronized (FriendList.getDictionary())