//If user typed command /clear, reset the content of the view
if([[attributedStringstring]caseInsensitiveCompare:AILocalizedString(@"/clear","Command which will clear the message area of a chat. Please include the '/' at the front of your translation.")]==NSOrderedSame){
//Reset the content of the view
[messageDisplayControllerclearView];
//Reset the content of the text field, removing the command as it has been executed
[selfclearTextEntryView];
//Commands are not messages, so they don't have to be sent
return;
}
if(chat.isGroupChat&&!chat.account.online){
//Refuse to do anything with a group chat for an offline account.
AILocalizedString(@"Send Now will deliver your message to the server immediately. %@ will receive the message the next time he or she signs on, even if you are no longer online.\n\nSend When Both Online will send the message the next time both you and %@ are known to be online and you are connected using Adium on this computer.","Send Later dialogue explanation text for accounts supporting offline messaging support."),
AILocalizedString(@"Send Later will send the message the next time both you and %@ are online. Send Now may work if %@ is invisible or is not on your contact list and so only appears to be offline.","Send Later dialogue explanation text"),
AILogWithSignature(@"Added match %@ with nick %@; UID: %@; formattedUID: %@; displayName: %@",listContact,[self.chataliasForContact:listContact],listContact.UID,listContact.formattedUID,listContact.displayName);