if(args.msg.getMsgParameter() > 0) {
String jid = args.msg.getMsgParameter(0);
Presence presence = bot.getPresenceOf(jid);
g.drawImage(getImage(presence),1,(small ? 0 : 5),null);
PresenceWrapper wrapper = null;
if(presence == null) {
for(String user : bot.presences.keySet()) {
if(StringUtils.parseBareAddress(user).equals(StringUtils.parseBareAddress(jid))) {
PresenceWrapper myWrapper = bot.presences.get(user);
if(wrapper == null || wrapper.date.before(myWrapper.date))
wrapper = myWrapper;
}
}
} else {