}
else if(presence.getType().equals("error") && !monitoring)
{
GroupchatWindow gcw = Plugin.getGroupchat(jid);
monitoring = false;
gcw.presenceChanged(presence);
return;
}
if(presence.getFrom().getResource()==null);//do nothing server presence
else if(presence.getShow()==Presence.UNAVAILABLE)
{