public boolean handleMessage(GOIMAccount account, Message msg, boolean alreadyHandled) {
if(msg != null && msg.getBody() != null) {
if(chatIds.get(msg.getFrom()) == null)
chatIds.put(msg.getFrom(),
new GOIMChatObject(account,msg.getFrom(),msg.getThread()));
RosterEntry entry = account.xmpp.getRoster().getEntry(StringUtils.parseBareAddress(msg.getFrom()));
String nick = entry == null ? msg.getFrom() : (entry.getName() == null ? entry.getUser() : entry.getName());
bridge.sendMessage(msg.getFrom(),
nick,
"<" + nick + "> " + msg.getBody());