Adium

Changeset 24481

Show
Ignore:
Timestamp:
07/23/2008 01:38:12 PM (6 months ago)
Author:
sholt
Message:

Quick and dirty fix for emoticons bordered by * chars. Ugly ugly, but worky.
Fixes #10525

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/AIEmoticonController.m

    r23999 r24481  
    270270                                         (previousCharacter == '\n') || (previousCharacter == '\r') || (previousCharacter == '.') || (previousCharacter == '?') || (previousCharacter == '!') || 
    271271                                         (previousCharacter == '\"') || (previousCharacter == '\'') || 
    272                                          (previousCharacter == '(') || 
     272                                         (previousCharacter == '(') || (previousCharacter == '*') || 
    273273                                         (*newMessage && [*newMessage attribute:NSAttachmentAttributeName 
    274274                                                                                                        atIndex:(emoticonRangeInNewMessage.location - 1)  
     
    277277                                        ((nextCharacter == ' ') || (nextCharacter == '\t') || (nextCharacter == '\n') || (nextCharacter == '\r') || 
    278278                                         (nextCharacter == '.') || (nextCharacter == ',') || (nextCharacter == '?') || (nextCharacter == '!') || 
    279                                          (nextCharacter == ')') || 
     279                                         (nextCharacter == ')') || (nextCharacter == '*') || 
    280280                                         (nextCharacter == '\"') || (nextCharacter == '\''))) { 
    281281                                        acceptable = YES;