conn.login(account.getUsername(),account.password,account.resource);
disco = ServiceDiscoveryManager.getInstanceFor(conn);
disco.addFeature("jabber:iq:version");
changeStatus(type,mode,true);
roster = conn.getRoster();
roster.addRosterListener(new RosterListener(){
public void rosterModified() {
// System.out.println("rosterModified()");
rosterListener.fireEvent(new GOIMRosterEvent(XMPPManager.this,GOIMRosterEvent.TYPE_MODIFIED,null));
}
public void presenceChanged(String jid) {