if(loginInfo == null) return;
new LoginStatusWindow(loginInfo,backend,1);
}
else
{
PresenceBuilder pb = new PresenceBuilder();
pb.show = show;
pb.status = status;
pb.priority = loginInfo.getPriority();
Avatars avatars = getAvatarInterface();
//pb.addExtension(capabilities.getCaps());
if(avatars!=null)
{
pb.addExtension(avatars.addHash());
}
if(show!=Presence.UNAVAILABLE && openPGP!=null)
{
pb.addExtension(openPGP.signPresence(status));
}
try
{
send(pb.build());
} catch (InstantiationException e)
{
e.printStackTrace();
}
for(Iterator<JETIListener> j = backend.getListeners(nu.fw.jeti.events.StatusChangeListener.class);j.hasNext();)