public void parse(Session session, Request request) {
int user = request.readInt();
String message = request.readString();
if (H4J.getNetwork().getSessionManager().getOnlineStatusById(user)) {
Session friend = H4J.getNetwork().getSessionManager().getSessionById(user);
friend.respond(SendInstantMessageMessageComposer.compose(session.getHabbo().getId(), message));
} else {
session.respond(SendInstantMessageMessageComposer.compose(user, "Your friend is offline!"));
}
}