boolean online = buddy != null && buddy.isOnline();
return online;
}
public synchronized AIMBuddy getBuddy(String buddyName) {
AIMBuddy buddy;
if (_sender == null) {
buddy = null;
}
else {
buddy = _sender.getBuddy(buddyName);
if (buddy == null) {
_sender.addBuddy(new AIMBuddy(buddyName));
buddy = _sender.getBuddy(buddyName);
}
}
return buddy;
}